Adherence to Islam should be enough to keep them locked-up for the duration of the war.
You don't mean that.
There's a little matter of our Constitution. "The free exercise of religion" is pretty plain language.
We need to keep them locked up for legitimate reasons, but adhering to a false religion is not against the law.