When you have locked the gearbox by engaging two gears, I have seen autograssers jack up a saloon car, sit the front wheel on the top of the box and use that to hold it while they undo the nut.
Very rough and ready but it works to repair a gearbox in the middle of a field!