windows implementation for xmpp_sem_timedwait