JP Duminy turned a dropped catch into a run out during South Africa's series-sealing win over Sri Lanka in the second T20I.