Fixed #21545 -- autoreload kqueue events weren't cleared which caused an infinite loop.