If this problem has been left until no gears are available rather than just an iffy second gear, does this do any damage to the internals?
If not then I'm guessing the nut can be persuaded back up the damaged (by now?) mainshaft thread & then welded in place?
& no it's not me that has left things that long! -- as if !!