[PATCH v2 05/13] epoll: Generalize epoll_ref to cover things other than sockets