Can we assume you have a Wooden Stock? This might also work with a Synthetic Stock.
You can buy a short Picatinny Rail and simply screw that to the Stock and mount your flashlight to that.
Checking on line, a Barrel Band with Rail is about $35. However, a Picatinny Rail that can be mounted to the Stock is about $10 -
https://www.amazon.com/Picatinny-Barrel-Band-Ruger-10/dp/B004O9AGSE
https://www.amazon.com/s?k=Picatinny+rail
Just a thought.