Use mutexes in epoll instead of spinlocks