core: cleanup unlink_and_free_single_object() before we use it everywhere
core: cleanup unlink_and_free_single_object() before we use it everywhere

shekkbuilder/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc,shekkbuilder/hwloc