Move the kqueue event updater to happen every 128 events or at the beginning
of each FD loop, whichever appears first.

This dramatically cuts down on the amount of lock stalling going on in the
kernel.