tuntap: fix leaking reference count