io_wait: fix: check for EV_ERROR for kqueue()