Retry EAGAIN EWOULDBLOCK during syswrite