The Iran war is pulling naval resources toward the Middle East, creating an opening for Somali pirates to return — and adding another costly threat to strained global shipping routes.