tsan: fix deadlock in deadlock detector
forget to unlock a mutex on one of the paths