South Africa's Wiaan Mulder became the first cricketer in history to achieve a rare double feat during the second Test match against Bangladesh.