[PATCH 5.0 214/346] regulator: core: Avoid potential deadlock on regulator_unregister