events: revert back to the race condition to avoid deadlock, unlock scheduler when running event callback