tsan: fix Go build with TSAN_COLLECT_STATS
Go does not have cur_thread function.