Checks if the observation event queue contains more than the configured {@link #MAX_QUEUED_EVENTS maximum number of events}, and delays the current thread in such cases. No delay is added if the current thread is the observation thread, for example if an observation listener writes to the repository.
This method should only be called outside the scope of internal repository access locks.