Explicitly ensure that wallet is unlocked in `importprivkey`