NEXUS-6182: Make client multi-thread capable

Most notably, the connMgr used by HC4 for Client.
Also, some minor cleanups.

Issue
https://issues.sonatype.org/browse/NEXUS-6182

CI
https://bamboo.zion.sonatype.com/browse/NX-OSSF27