With their opposing armies massed on either side of the contested border dividing southern and northern Iraq, leaders in Baghdad and the semiautonomous Kurdistan region are warning they are close to civil war — one that could be triggered by Exxon Mobil.