Physically, the ratio of a circle's circumference to its diameter $C/d$ is not really $\pi$. General relativity describes gravity in terms of the curvature of spacetime, and roughly speaking, if you take $(C/d-\pi)/A$, where $A$ is the circle's area, what you get is a measure of curvature called the Ricci scalar.
But even if you're doing general relativity, you don't just go around redefining $\pi$. The thing is, $\pi$ occurs in all kinds of contexts, not just as $C/d$. For instance, you could define $\pi$ as $4-4/3+4/5-4/7+\ldots$, which has nothing to do with the curvature of space.
So if you define $\pi$ as $C/d$, you don't even get a consistent value within our own universe, whereas if you define it as $4-4/3+4/5-4/7+\ldots$, you get an answer that is guaranteed to be the same in any other universe.
Another way of looking at it is that $\pi$ is not the $C/d$ ratio of a physical circle, it's the $C/d$ ratio of a mathematically idealized circle that exists in certain axiomatic systems, such as Euclidean geometry. Viewed this way, it doesn't matter that our universe isn't actually Euclidean.