tsan: fix darwin Go crashes