Backport mongodb connection pooling from Havana