I have been told that one thing to check is the nut on the lower shaft of the gearbox. If that is loose, it can pop out of gear. I had that problem may years ago; the clutch lock was ok so I checked and tightened the lower nut and that did solve it. It’s worth checking before taking the top of the box off with all that is involved with that.