On Qatar, Pakistan Walks a Diplomatic Tightrope