Coil-globule transitions drive discontinuous volume conserving deformation in locally restrained gels