New data shows that foreigners sold a lot of their holdings of US debt this year. China is a top seller.