You must be looking for something like this:
They electrical conduit clamp with snap on clips for 1/2 to 3/4 rigid or EMT conduit. You can get other size such as 1" and larger. You will need two and attach them together with a machine bolt and nut. The nice thing about these is that you can turn and adjust them sideway along with the tilt angle. The bad thing is that they are made of metal and you will need some tubing wrapped around your handle bar and flashlight to prevent scratching them. Also don't be fool by the feature of the clip on them. They can be a hassle to unclip with your bare finger. A flatblade screw driver can ease the effort to pry the locking teeth on the clips apart.
If you don't like the clip type, you can also get them with a bolt to secure the conduit (or flashlight). They look like this: