time_watcher: Fix pthread_cond_timed_wait wrong usage