fix breakage in pthread_cond_wait due to typo