Annealing and heat treating again would be much more work than removing the pitting with sandpaper.
And at best you'd end up with a much smaller razor. Worst case the razor will warp in heat...