tsan: replace deadlock detector custom build script with cmake file