tun: correctly report an error in tun_flow_init()