Nationalizion given the huge out flow of revenue that in truth belongs to the people is hardly a risky path. (depending on your point of view of course) Countries around the globe have taken back natural resources that were being unfairly allocated. Given the current value of the gold in the ground and the existing infrastructure why would they need "credit" when they literally have money in the ground?
My point is that nationalization in poor countries where the wealth generated from economic activities is being disproportionately distributed to foreigners is a very real and ongoing risk. To dismiss such risk out of hand is at best naive. At worst it can spell revolution and bankruptcy.