tsan: fix compiler warning