Fixed race condition in condvar unit tests. If the worker thread
created by uv_thread_create reaches the mutex before the parent tests
does the parent test will timeout waiting for the worker thread
to call uv_cond_signal.