RUBY-623 socket wrappers and early plumbing for the connection pool