Germany's open-door refugee policy will, in the long run, help protect Germans from terrorism, writes Robert Verkaik.