My plans for the generic faction prisons is to have a limit on how many can spawn each time you are thrown in jail, resetting if you are captured again.
As you keep defeating more and more of them the waves will get stronger, so farming them will have a practical limit. This will also allow lower level prisons to potentially be a destination if captured in a higher floor, thus reducing the number of redundant prisons each floor.