So, I'm no machinist, but I've thought about how to make this before, while complying with laws about what is/isn't a suppressor. I'm pretty sure I'd want something that could be disassembled to prove it's not venting anywhere. I'd also want something I knew I could snug up on my barrel to be fairly secure.
None of this is modeled to any specific dimensions, but is just to show the pieces I was thinking about.
Red= Threads
Green = Gun Barrel
Blue = Barrel Extension.
Cyan = Rear Mount
Magenta = Sleeve
Purple = Cap
Originally I thought it would be useful to include a support flange on the barrel extension, but that may be moot given the rear support of the mount. Either way, the intent would be that one could use a lock washer behind the barrel extension, and the extension would have wrench flats for tightening. Same could be done for the cap.
That way, one could mount the extension to the barrel, ensure it's snug and not moving. Then slip the sleeve over the barrel, install the cap, again snugging it down to the barrel extension, then slide the sleeve forward and screw it into place on the cap. Finally the Rear Mount (which is actually two pieces held together with hex screws, I believe) can be put in place.