understaffed facility had to limit inmates’ time out of their cells