kqueue: Add support for stopping.

Changes:
  - kqueue init is no longer lazy,
  - support for stop channel is added,
  - closing fds is moved from finalizer to stop handler.