Wars and territorial disputes are rewriting the rules of global shipping.