Cutting the splines would make for an interesting job.
The easiest approach is to use a gas cylinder lock front sight, as mentionned.
The new muzzle could be sleeved, if a particular unit was to be installed. Install the sleeve, and then thread it. Much easier to use a brake with threads appropriate for the diameter of the barrel, though.