Counterintuitive effect of gravity on the heat capacity of a solid sphere: Re-examination of a well-known problem