pthread_cond_wait implementation for Linux/SH.