There are two ways of doing it...
1, use a "U" shaped metal block with enough of a slot to fit over the rod and hold it in place when you undo the nut
2, shove the handle of a large spanner down the gap in the crank and wedge it in when you undo the nut