txorphanage: Pass txid by reference instead of value
Summary:
This is a backport of core#21148 [2/14]
https://github.com/bitcoin/bitcoin/pull/21148/commits/81dd57e5b1ab1afa7e59468e30ef41bd34f0c8d7
Depends on D11481
Test Plan: ninja all check-all
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D11482