History suggests that whenever Washington looks toward Beijing during moments of global upheaval, Islamabad finds a way back into the game.