[avalanche] Fix test when ran without wallet
Summary: The generate RPC call require the wallet to be enabled. Use generatetoaddress instead.
Test Plan: Build without wallet and run the test.
Reviewers: #bitcoin_abc, nakihito
Reviewed By: nakihito
Differential Revision: https://reviews.bitcoinabc.org/D5568