Pace bowlers Faheem Ashraf and Salman Mirza registered their best international T20 figures to guide Pakistan to a nine-wicket win over South Africa in Lahore.