[c] multithread producer and worker with pthread_cond_signal and pthread_cond_wait