lib: added netdev_ref_resolve utility, improved related