Add instant autoreload on platforms supporting kqueue.
Reduce the set of events that trigger a reload.

This seems to avoid multiple reloads.
Merge pull request #1830 from aaugustin/instant-reload-os-x

Add instant autoreload on platforms supporting kqueue.

Fix #21356.