Correct pthread_cond_timedwait() time calculation and error handling.
Update notes for cond_timedwait() patch.