John K Clark said:
You say "identical amounts of work done" but work is just a specific sort of energy and as far as I know heat or any other sort of energy can produce a gravitational field so I don't see why there would be any ambiguity in the term "identical amounts of stored energy"
Because "energy", depending on what you mean by it, can be frame-dependent. But "work done" is an invariant. Mathematically, "work done" must be expressible as a scalar invariant, but "energy" can be just one component of a tensor. They're not necessarily the same thing, because ordinary language is vague. If you told me exactly what you meant by "identical amounts of stored energy" in terms of math, or even in terms of some more precise ordinary language term like "work done" that must be invariant, then there would be no ambiguity. But you didn't do that.
John K Clark said:
if pressure can change the spacetime curvature inside an object I don't understand why that change would suddenly stop at the object's boundary
You're misunderstanding what I was saying. The Einstein Field Equation, which is what Thorne was describing in his statement that you quoted, is local: it tells you the relationship between the stress-energy tensor and spacetime curvature
at a particular point. It doesn't directly tell you the relationship between, say, the energy density and pressure inside a neutron star and the gravitational field observed outside the neutron star. To obtain such a relationship, you need to develop a global solution of the Einstein Field Equation, i.e., a description of stress-energy and spacetime curvature throughout some extended region of spacetime, such that, at each point within that region, the relationship between stress-energy and spacetime curvature at that point satisfies the EFE.
Saying that "pressure can change the spacetime curvature" means that pressure
at a particular point in spacetime affects the spacetime curvature
at that point in spacetime. That doesn't necessarily mean that, when you develop a global solution, the pressure inside the object will appear in the description of the gravitational field outside the object. As a matter of fact, it can be shown, by an analysis similar to the one given in the paper
@Dale linked to, that for the case of a static, spherically symmetric object, the pressure inside the object does
not appear in the description of the gravitational field outside the object, i.e., in the externally measured mass of the object. Heuristically, this is because the positive contribution from pressure is exactly cancelled, in equilibrium, by a negative contribution from gravitational potential energy, similar to the way in which the positive contribution from pressure in a gas inside a container is exactly cancelled, in equilibrium, by the negative contribution from tension in the container walls. In both cases, it's not that pressure somehow stops contributing; it's just that its contribution gets canceled by something else.
The bottom line is that you can't just say" pressure contributes to gravity" and expect that to give you an answer for a specific case; you have to actually work out, in a specific case, a solution of the EFE that describes that case, and then see what it tells you about the various contributions to spacetime curvature/gravity. And none of the solutions we have discussed so far in this thread apply to the case of a stretched or compressed spring.