Disappearance of pairing correlations in a rotating nucleus and the role of particle-number projection discussed within a solvable model