Prevent epoll_wait call with a timeout if there are events in the queue to be processed