tsan: fix test relying on assert