Re-delegate app/closelockmanager onclose
Always do beforeXXX in the current event tick such that we can't fire successive events when panel is transitioning.

Doesn't work for root yet, though.
Guard against interrupted transition (that doesn't fire transitionend) with a timeout.