wallet: remove BDB dependency from wallet migration benchmark
Part of the legacy wallet removal working path #20160.
Stops creating a bdb database in the wallet migration benchmark. Instead, the benchmark now creates the db in memory and re-uses it for the migration process.