tsan: fix false positive in localtime()