If China mines a lot of gold, and buys a lot of gold, they are going to get killed financially on that investment at some point.
Unless they work with the BRICS nations to issue a gold-backed yuan, which is the current plan. If there is a question to the stability of the dollar, this would become an alternative to the dollar for trade.