tsan: minor optimizations for Go runtime