Added the ability to make events unmodifiable (lock).