[PATCH 5.4 015/153] regulator: core: fix UAF in destroy_regulator()