regulator: core: Simplify error flow in _regulator_do_set_voltage()