If vibration causes nuts to constantly work loose, first add a lock washer, if it doesn’t have one. Or, if there is room on the bolt, use two nuts, tightened toward each other so they lock solidly. You can also try wrapping monofilament fishing line under the nut before tightening it on the bolt. Another possibility is to try wrapping the threads first with the teflon tape that is used in plumbing.