Add deadlock detection and recovery for freebsd_umtx_sem2_wait().