Botswana and a group leading the race to buy De Beers are near an agreement on their future ownership stakes in the diamond miner, potentially paving the way for Anglo American Plc to finally exit the business.