gthread: Use pthread_cond_timedwait_monotonic() if available