regulator: core: avoid regulator_resolve_supply() race condition