[PATCH 5.15 067/206] regulator: core: fix UAF in destroy_regulator()