This change allows to distinguish incoming Tor connections from others.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/19991 | core#19991]] [2/8]
https://github.com/bitcoin/bitcoin/pull/19991/commits/a5266d4546c444cfd6d36cb63d2df52ce9e689e2
Depends on D10444