Former New Zealand captain Kane Williamson was in fine touch during second tri-series ODI against South Africa in Lahore.