Locks for epoll
Apparently this is needed for epoll too!