In the logic for requesting missing parents of orphan transactions, parent
transactions with multiple outputs being spent by the given orphan were being
processed multiple times. Fix this by deduplicating the set of missing parent
txids first.
Co-authored-by: Anthony Towns <aj@erisian.com.au>
This is a backport of core#19596 [2/2]
https://github.com/bitcoin/bitcoin/pull/19596/commits/4c0731f9c50b0556f8a57b912c8f295c7a9ea89c