This still happens today but with instruments other than gold, right? Like foreign owned shares. Today's equivalent would be China owning all the treasury bonds.

China owns about 7% of us treasury securities and they stopped buying them I think around 2015L: https://ticdata.treasury.gov/resource-center/data-chart-cent...