Global shares are mostly lower and oil prices have surged as investors eye threats to energy supplies from the Iran war.