A state government, wrestling with a booming prison population, is assessing whether it could turn a COVID quarantine facility into a prison.