Check for pending schedules AFTER setting the trigger event.

The bug this fixes is hard to detect on modern hardware unless it is
under partiularly high load that presumably causes wonky VM scheduling.

Disclaimer:

I am unclear enough on Xen signaling to be absolutely sure this
eliminates the possible window for dropped signals instead of merely
shrinking the window.