Forget dealing with Modi, Nawaz Sharif’s trickiest task is picking Pakistan’s next army chief