The lucrative practice of mass incarceration is being exposed by a tangled court battle for control of the prison-tech empire ...