The international community must take steps to prevent Syria from becoming a new haven for foreign jihadists.