asan/tsan: fix failing CHECK on windows