Took the NC29 for a spin at the weekend for a test run(in a private compound

Ran fine, nippy machine, anyway on the journey back something started knocking, checked over the bike looks like some new exhaust exhaust studs were working there way out of the block.
I did properly torque them, and dont want to over tighen them, as I have already went through the pain of snapped stud.
anyone a decent thread \ stud locking compound for use with the high heat?
Cheers