Sarfraz’s ton gives Pakistan lead in Sri Lanka Test