[Wallet] Call SetBestChain before and after rescan

This ensures to redo rescan, in case of an incomplete rescan.