[PATCH 6.0 065/289] regulator: core: fix UAF in destroy_regulator()