event: added a hackish ability to set an event as "locked" to its current state, cleaned up some comments