Well I am just guessing here really... but if it has enough gunk and rust on it the shaft would just need some brake cleaner shot at it and then maybe some rust remover put on it. You shouldn't need a machinist to do anything, I don't think. To my understanding there is also a speed sensor at the transfer case - could that be the source of your error code?