tuntap: correctly handle error in tun_set_iff()