RUBY-798 Sharded Cluster test fixes for narrowed localhost exception