spapr: fix memory leak in spapr_core_pre_plug()