Threading: Simplify thread_cond_wait_vm().