Offering to mediate in the latest flare-up was the easy way out of a difficult situation for Pakistan as Iran, Saudi Arabia and the US would all have wanted it to be on their side