Prevent concurrent event replaying If the events distributor is enabled and startup events replaying takes longer than the distributor delay, the two threads will be replaying events concurrently. Use an AtomicBoolean to ensure only one runs at a time. Change-Id: Idce111dfb54a88ab6ace0f52e70b61a711395855