This commit does not change behavior. It is a prerequisite for NAT-PMP
support adding.
This is a backport of [[https://github.com/bitcoin/bitcoin/pull/18077 | core#18077]] [6/13]
https://github.com/bitcoin/bitcoin/pull/18077/commits/58e8364dcdc4e57b0caac09f8402e6535301de9b
Depends on D12073