Foreigners turned net buyers of South African stocks on Thursday.