When rich countries wrote off billions of dollars of African debt in 2005, they hoped governments would think twice about borrowing