The UK and Iran were not at war and therefore, the captured British soldiers are not POW and the Geneva Convention does not apply.
However, even if the Geneva Convention did apply, the Iranians could come up with some mechanism to get around it much like was done for Gitmo.
In any event...