A gear lever dropping while riding may be caused by a loose joint, a stripped thread or a worn ball joint. Simply tightening it only helps if the part is sound.
Checking
Inspect the lever's clamp on the splines, both ends of the linkage rod and the locknuts. An adjustable rod may have right- and left-hand threads; establish which is which first so you don't strip a rod end. Note the original position before dismantling.
If the splines or thread are damaged, a proper repair or replacement is needed. Threadlocker doesn't restore material. The M6×12 bolt from one report doesn't automatically fit every position.
Assembly
Adjust the position for your boots with enough engagement on both threads. Check the lever's full travel and return, and that it doesn't touch the covers or guards. Locking is done according to the procedure for the specific joint.
A homemade rod made from bar stock needs the right material, an accurate thread and strength, not just the right length. Inspect the fastenings again after the first few rides. If the lever comes loose again, find out why: incorrect fitting and worn splines aren't fixed by more torque.