constraints on solitary confinement and other unsafe living conditions