Getting AIIOBE from TimeTaken.recordTimedEvent

I suspect the map is being modified from multiple threads, corrupting its internal state.