Fixed test to match change to pthread_cond_timedwait which now takes a wall time.
Commented out calls to pthread_cond_wait and pthread_cond_timedwait without the mutex locked before calling.