Replaces legacy wallet operations with MiniWallet in rpc_getblockstats.py and simplifies the test structure.
The test used legacy wallet RPCs and had a complex generate/load pattern that dumped data to JSON files. MiniWallet provides deterministic transaction creation, eliminating the need for file I/O and pre-generated data. This creates a single code path that works in all environments.
Fixes #31838