Fix repairwallet to update walletmodel without restart.