Mil spec doesn't use thread lock. Staking only. Mechanically staking it is spec because the weapon won't be torn down by the operator for cleaning, and it's service life is based on 50,000 rounds plus or twenty years plus. Also, the military uses all sorts of solvents to dip weapons in, some will attack thread locker and dissolve it. Not good. Chemical thread lockers aren't used for a lot of reasons.
On the gunsmith level, thread lockers have carried over from machine shop practices where they do get used, as staking seems to permanent and beating dents into the metal finish is considered hillbilly on finely finished firearms. Gunsmiths also like thread lockers because most owners don't know how to take it apart and it forces them to bring it back for more lucrative work. And some just don't want any comebacks for it loosening - or just don't know better. "Gunsmith" does not mean that individual is qualified to work on military spec weapons. Same as "mechanic" doesn't mean they are qualified to work on both a Kenworth and Prius.
Then you get the rocksett crowd who think that using a ceramic adhesive that resists 2,000 F is the minimum. Same as the guy who JB welds all the intake bolts. Permanent throw away situation.
Problem is guys working in one field think they can work in others - doctors as contractors. The results can get ugly and in their mind anyone who questions them is wrong.
Don't hire rice farmers to grow your grapes.