No matching call to freeIfHardwait if DeadlockDetectedException thrown
Hi. The function DeadlockDetectingLock.lock works as follws: if lock is not already held by current thread, call markAsHardwait which adds the current thread to the list of hardwaiting threads, then checks the deadlock condition by calling canThreadWaitOnLock. If a deadlock condition is found, an exception is thrown, but there is no matching call to freeIfHardwait. The call to freeIfHardwait only happens if the deadlock condition is false and super.lock succeeds. Thanks.