eliminate data race reported by the -race tool