Fix a bad test, reduce lock contention, rework threading model, make ready for production.
Re-enable disabled ipv6 connection, and fix tests.