Do not write to wallet during LoadWallet

When debugging another issue, I found a hang-during-startup race condition due to
LoadWallet calling SetMinVersion (via LoadCryptedKey).

Writing to the file that you're in the process of reading is a bad idea.
Merge pull request #2607 from gavinandresen/loadwalletfix

Do not write to wallet during LoadWallet