Close() temp files before renaming them.
Close() temp files before renaming them.

Fixes syncing dirty wallet files on Windows.

Stash-Crypto/btcwallet,btcsuite/btcwallet,synrg-labs/btcwallet,jrick/btcwallet,Stash-Crypto/btcwallet,jrick/dcrwallet,decred/dcrwallet,Roasbeef/btcwallet,jrick/dcrwallet,decred/dcrwallet,Roasbeef/btcwallet,jrick/btcwallet,btcsuite/btcwallet,synrg-labs/btcwallet