add th_cd_timedwait() and th_lk_trylock()