Details
Description
The closest method in master (55097afd011278c9274b778a2bce45b170ba2bab) is DistributedLock::isLockHeld. Which only answers the question whether the lock is held. It also tries to check that the lock is associated with the lock object, but the granularity is at process level so the guarantee that it actually owns it is weak.