test: Pass in CoinsTip to ValidateCheckInputsForAllFlags
test: Pass in CoinsTip to ValidateCheckInputsForAllFlags

Summary:
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/21866 | core#21866]] [4/12]
https://github.com/bitcoin/bitcoin/pull/21866/commits/e197076219e986ede6cf924e0ea36bd723503b2d

Depends on D11648

Test Plan: `ninja check`

Reviewers: #bitcoin_abc, Fabien

Reviewed By: #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D11649

Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc,Bitcoin-ABC/bitcoin-abc