mtx_owned
mtx_owned(pthread_mutex_t *lock)
mtx_owned(struct mtx *mtx)
#define mtx_owned(m) (mtx_owner(m) == curthread)