Iraq will prosecute IS militants transferred from Syria under a US-brokered deal, amid security concerns after Syrian forces took control of al-Hol camp and Shaddadeh prison.