tests: add initial test for condition variable

This simple test currently tests the `pthread_cond_wait()` and `pthread_cond_signal()` functions.
The `main` thread waits for the condition to reset it, while `second_thread` is a worker that set the condition true. 

Depends on #771