On the layering transition of an SOS surface interacting with a wall .2. The Glauber dynamics