Previously vExtraTxnForCompact and vExtraTxnForCompactIt were protected by g_cs_orphans; protect them by g_msgproc_mutex instead, as they are only used during message processing.
Partial backport of core#26295:
https://github.com/bitcoin/bitcoin/pull/26295/commits/89e2e0da0bcd0b0757d7b42907e2d2214da9f68b
Depends on D16226.