Assuming you are willing to risk the teeth on the errant sprocket ... and you have access to a LARGE engineer's vice (that's the vice, not necessarily the engineer
) ...
.... try holding the sprocket in the vice jaws, no need to be too tight, horizontally. i.e. the wheel will be flat, on top of the vice with the sprocket underneath. Then, gently, turn the wheel using the rim like a steering wheel - making sure it's the right way!
I said GENTLY as there is some minor risk of bending, or at least straining, the spokes - but the amount of leverage you can get should release the sprocket before the spokes ping!
It's worked for me - and having had a sprocket come loose on my road fixed, even with a lock ring, I now tighten newly-fitted sprockets with a very gentle "nip and turn" in the vice, before applying the lockring with a hammer and punch.
All of these methods reduce the skinned-knuckles risk from chainwhips and those annoying lockring spanners
Rob