tsan: fix deadlock detector test so that it does not force contention in runtime