it would be good to have a possibility to try to acquire a mutex with a timeout (as is possible for an event).