Fix __lll_lock_wait deadlock in libpthread.