Protect map in goroutines.