mac: Emit focus/blur events after page has actually focus/blur-ed.

Otherwise the page would receive the blur event when it has not blured
yet.

Fixes atom/atom#3124.