Yep, you're right. I did mine a few years ago, and as I tried to remove the nut, the stud came out instead. Long end on the nut side, as the thread protrudes out from the nut by about 10mm or so.
if it's just to get to the mechanic, I reckon any thread locker compound may do the job, just let it dry properly. Note that all the thread locker is really supposed to do is stop the stud from trying to tighten any more than you do it up to .. which is very lightly to begin with.
How far is the mechanic?

