Elasticity of a magnetic lattice near the magnetic critical point