refactor: Move NodeId declaration into net_types.h and fix includes in related modules

bitcoin/bitcoin: PR #36807

The review is inconclusive; no findings were published.

Coverage details