I guess that's one of the problems of a war with ill defined goals as to when and how the end of the GWOT is reached. It's ubiquitous at best....like war on drugs etc.
The best figure I can come up with is the one McCain set. What was it....a 100 years? Kinda leaves it wide open to me.
Which government will they be released to?
well now that's the crux. They have no government - they are illegal combatants so - they have to wait until we're good and ready to deal with them. I don't like this war any more than you do - but we didn't start it. We damn well better finish it - and with finality.
Stand up for what is right, even if you have to stand alone.