A very old trick is to use a candle to apply heat to the nut. Supposedly, wax molecules in the flame will penetrate the joint and help lubricate it. And, there's always PB parts blaster.
If the stud is, in fact, threaded into the frame, it might be worthwhile to remove stud and nut so you can apply more heat than is advisable while it's assembled.
If you get the nut off, I'd suggest removing the stud, degreasing both the stud and frame. At this point apply red Loc-Tite and reinstall the stud to proper point. After about 30 minutes, the stud will now be a near permanent fixture.