I would suggest buying a better cog and a lockring. I've never had to use any sort of Loctite on my cog or lockring and I've only ever had two minor slipping incidents, both of which were clearly due to user error and inexperience.
You can get pretty decent cogs for around $20 (e.g. Scrodcog) and a top of the line lockring for less than $15.