In 1831, a young French magistrate crossed the Atlantic to study American prisons and came back with something far larger: a portrait of a society being…