Retry blocking calls on EINTR.