Add `condvar_t wrapper` for pthread cond vars
Add `wait_on_picture()` to ring_buffer
this function blocks until a newer picture is in the buffer.