As a follow-up to PR #18247, which added sync_with_ping by default in add_p2p_connection(), this PR allows optionally passing an argument to add_p2p_connection to avoid running sync_with_ping for partial connections.
The second commit passes that argument in cases where add_p2p_connection is followed closely by a call to sync_with_ping or send_with_ping, or where the test integrity appears better served with the previous behavior of opening a partial connection.
As this PR maintains previous behavior WRT a few tests, there should be no downside here.