Properly use TxId in txindex.cpp
Summary: No logic change, just stricter typing.
Test Plan:
ninja all check
This should be enough as there are no logic changes.
Reviewers: #bitcoin_abc, PiRK
Reviewed By: #bitcoin_abc, PiRK
Differential Revision: https://reviews.bitcoinabc.org/D8708