Added lock to _map method in waldoActiveEventMap. We should lock before iterating over all of the elements in the map to prevent races.