tsan: fix deadlock detector build for SANITIZER_DEADLOCK_DETECTOR_VERSION=2