net: Replace enum CConnMan::NumConnections with enum class ConnectionDirection
Summary: This is a backport of core#19771
Test Plan: ninja all check-all bitcoin-fuzzers
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D17109