 A soldier in a scarf manned a machine gun on the barricade that marked the boundary. From there, the road led 60 miles through territory controlled by the Iraqi military to the edge of Mosul and the last bastions of the ISIS caliphate.