You mistakenly seem to think that Islam is a nation like Germany or Japan.
It is a religion articulated by the Quran.
People convert to it; westerner's convert to it.
Locking people up will simply lead to people denying they are Islamic.
How would locking people up solve the problem?