Make all kqueue event registration lazy.

Fixes the kqueue reactor so that it works on FreeBSD again.