The Iran conflict adds risks to megaprojects by Western companies looking to tap the Middle East for much more than oil.