Workaround apparent bug in 1.8.7/REE: block all during sem_timedwait