sync.Mutex locks a region so only one goroutine runs it at a time. This map is a Go map, which is not safe for concurrent use on its own. The lock covers the read and the write together. Values are go/int64 so they match Glojure integers.
swap! on a single atom is already atomic, so a mutex around one atom adds nothing. Use the mutex when the protected thing is a Go value, or when several updates must happen together. Reading a missing Go map key panics, so the key is created before the workers start.