locking getEventsChanges for concurrent accesses