Some officials say it’s time to rethink shared quarters for inmates because of the risk of violence and the detriment to rehabilitation.