Squalid prisons are just the start. The entire justice system is in meltdown