Part of #36692. This keeps CMutableTransaction as the builder, since a CTransaction constructor taking inputs and outputs directly is still under discussion. Once one exists, these call sites can be converted to construct CTransaction directly.
This PR covers the mempool-related files.
This change is test- and bench-only and does not change the constructed transactions.
Notes for reviewers: two spots in rbf_tests that modify an existing transaction as part of the test logic are intentionally left unchanged.