handle EINTR in enet_socket_wait