Try to lock the underlying mutex without blocking.
Declared in <sync.h>
<sync.h>
bool try_lock();
true if the lock was acquired.