Hello all,
As I see John is working hard here. I had the same issue as you, battery went out and the radio locked.
I called the official dealer and did not wanted to help because my car was imported from another country they said!
So I found a radio code calculator and seems to be working...