It would be pretty much impossible for them to riot if they were just placed on total lockdown. If you can't leave your cell, you can't riot I would think.
Besides, it's a jail I would think the guards could just start shooting anyone that gets out of hand.