Commit
52b4106356a10584d63fb710d98654908c661e91
by githubGH-4784 switched approach for deadlock prevention (#5001)
* simplify deadlock detection
* switch away from ReentrantLock
* new lock manager with a reentrant lock that supports unlocking from seperate thread
* improved tests
(commit: 52b4106)