If you are officially accused of being a terrorist (or aiding a terrorist organisation) by the states, they can hold you indefinitely. The UK can hold you as well without reason for a specified period as well (90 days?).
The UK has very little to gain from his release and much to lose - it will injure US/UK relations.