[tsan] add coarse-grained lock around the DeadlockDetector. We can do better than that, but that's a start.