Pakistan take 12-run lead in Sri Lanka Test