tsan: remove dead code