That depends upon whether or not it's turning when you lock it. If it is, then avoiding tooth damage is difficult. If it's immobile at the time, you can simply insert blocks between it and the corresponding gear or run a pin through the shaft. Much more information is needed for a reliable analysis.