c/thread/cnd signal

Unblocks one thread that currently waits on condition variable pointed to by. If no threads are blocked, does nothing and returns.

Return value
thrd_success if successful, thrd_error otherwise.