Thread sealer??

I went and shot about 100 rounds through my newly built AR15 and my Troy Front sight loosened up on my Battle rail. Is there a product I can use to keep this from happening again thats not “permanent”…

Blue LocTite. Not red.