Producing or refurbishing threads for spark plugs or glow plugs