td_thr_lockowner() calls the iterator function cb once for every mutex that is held by the thread whose handle is th_p. The
synchronization handle and the pointer cb_data_p are passed to the function. See td_ta_thr_iter(3THR) for a similarly structured function.
Iteration terminates early if the callback function cb returns a non-zero value.