One key issue might be the terrorist's own mentality... in the case of the Lockerbie bomber, that's a situation where the people affected by his actions should have had the final say, but he probably wasn't much of a risk anymore.
In terms of terrorists such as Al Qaeda, keep in mind that these people are fanatics, should they be released in a situation like that, you can pretty well guarantee the first thing they're going to do is attempt another terrorist attack.
I think the best answer I can personally offer is, A) it depends on your definition of "human rights" and, B) it depends on the individual situation... case by case.
They should be given the basics they need to survive but are unable to provide for themselves in prison ... food, water, shelter, and medical treatment. Anything else beyond that is up for debate, to say the least.