Allow beforeInit callbacks to lock and release init event, #152