Kumar Sangakkara's impressive 192 helped Sri Lanka secure a draw on the final day of the second Test against Pakistan in Colombo.