If i need to hold a bolt in a socket in hard to reach places I use this stuff.
https://www.napaonline.com/en/p/MMM08578
Works great . I also use it to stop vibration on parts and/ or filling holes. Just used it on my WJ air filter box mount holes underneath the left front fender.
dlm ny country