epoll: handle EINTR properly in Ruby-space