Given that the use of a transaction's nVersion is always as an unsigned
int, it doesn't make sense to store it as signed and then cast it to
unsigned.
This is a partial backport of core#29325
https://github.com/bitcoin/bitcoin/pull/29325/changes/27e70f1f5be1f536f2314cd2ea42b4f80d927fbd