Ponder this: why do you think the qualification 'in a vacuum' was added to the constancy statement? How much of the universe qualifies as a vacuum? What I explained for you assumes the path of light is through the vacuum of space. When measured in local proper frames [like the one you're walking around in your entire life] the measurement is an invariant. GR predicts the local spacetime is flat, to some limit over distance, and the path of light is a constant over the local spacetime. If the local path is through some medium that can absorb the light it still travels at c between the stuff that makes up the medium that can absorb the light. Quantum mechanics explains this in detail. So the local speed of light is a constant. Invariant from one measurement to the next measurement in a different place.