It could be argued that prison labor is "cruel and unusual" by modern standards.
But if it's completely voluntary, and you won't face any direct nor indirect retaliation for refusing, then I have less of a problem with it (it still distorts the labor market when they take jobs from people not incarcerated, and the taxpayers are the ones subsidizing those jobs.)