South Africa spilled five catches on day two of the third Test against Pakistan, with Dean Elgar and Quinton de Kock spilling two apiece.