Suture Thread Modeling Using Control Barrier Functions for Autonomous Surgery