Machining crosshead threads for piston