[PATCH v5 0/7] Refactor epoll handling in preparation for multithreading