You could run a wire through the spring, to the spring mounts.
If you can tighten it the bike won't move.
The early CXs are pretty stable on the stands though. I've built CXs sitting on the centre stand with NO spring fitted at all. I just make sure any pushing on the bike is backwards.
Not sure if Gs are so stable though.