Updated EventCenter to use synchronization blocks

This prevents ConcurrentModificationExceptions.