Needs to be screwcut in a lathe, really. I had a rifle some years ago that a previous owner had tried to thread with a die, and it wasn't central or true. I had the bad thread machined off, a short steel sleeve turned up that was an interference fit to go over the exposed end, and a fresh thread cut in the lathe.