net: fix net_device refcounting