Configure a sensible I/O thread count
Avoid deadlock caused by having two connection locks