South Africa opener Marques Ackerman reached 150 runs in the second Test against Bangladesh, with his young son Jack cheering from the stands.