wallet: close db on Open() failure.
wallet: close db on Open() failure.

This commit makes sure the wallet db is closed if the call to
open the wallet fails, as subsequent calls to OpenExistingWallet
would fail to open the already open database.

btcsuite/btcwallet,btcsuite/btcwallet