[PATCH 5.1 237/405] regulator: core: Avoid potential deadlock on regulator_unregister