net/tap: check ioctl on restore