Release the lock if held and update lock-order bookkeeping.
Declared in <sync.h>
<sync.h>
[[release_capability]] ~UniqueLock();