Shear modulus of an elastic solid under external pressure as a function of temperature: The case of helium