what were you doing when it lock, going into reverse, etc
my old TO35 used to lock from time to time,
I finally learned not to pull up on the shifter lever when shifting from forward to reverse or reverse to forward. if anything give it a little downward pressure as you shift or just do not get in a hurry,
the shift rails are worn on the old tractors, springs loose, whatever. it can be fixed, but how much do you want to invest?????
but if you can practice some in the barn yard shifting from forward to reverse and reverse to forward, bringing the tractor to a complete stop before shifting. be sure, not to pull up on the shift lever, when you shift, I think it may help.
you are going backwards as you stop to shift to a forward gear, you have the shifter in you hand. your body goes back a little as you stop the reverse motion, as so, your hand pulls up on the shifter lever as you shift to a forward gear, shifter locked.
hope some of my past experience helps.
when did you change oil in the old transmission. maybe some new oil would help.
I still use GL-1 mineral oil, 90 weight. most do not use this oil, but it works fine in my old tractor. 1957 TO35.
still runs like a top,