Late Jordie Barrett penalty secures All Blacks a two-point win over Boks