This is needed to support race detector in Golang. See also: https://github.com/golang/go/issues/64345