regulator: core: Fix logic to determinate if regulator can change voltage