tsan: fix Go build
Go linker does not like function-static objects.