fixed go test -race.

Thanks @fsouza.