THERMODYNAMICS OF A COLLAPSING SHELL IN AN EXPANDING UNIVERSE