epoll: Clean up epoll_wait and stop excess polling