The best method to produce this internal thread in 17-4 is to hot form it using dies.Then you should be able to machine the required outer configuration. The external thread should be done by thread rolling.Thread roll shops should be able to do both.
Cutting this thread is going to destroy alot...