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