It's the only way out? It would be wise if they sell some gold, but only if they get a high price, say $1000+/oz
Inflation is a better idea for the government. That way they can at least reset the dollar by pegging it gold after the collapse. In the meantime the government will pay its chinese debts with cash for clunkers programs since the chinese would rather have the metal from those cars than the worthless paper dollars. (Yeah, where did you think those cars actually went? They just vanish? No they are in china!)