The 2nd one looks pretty okay as it is. If you ran a die down it, it would clean up nicely.
The 1st one is kind of iffy. You would run a die down it first of all to clean it up. But there might not be enough meat on the remaining threads to catch well.
You might have to shim it a bit or use a different locking nut with the threads in a different spot so that it catches differently.