[BUGFIX] Avoid race condition in loading events

Releases: 6.2
Change-Id: Ic93a0a06b93d5fc40c2aa0d8f2d27ab148e81c29
Reviewed-on: https://review.typo3.org/29734
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind