use tags for cursor count tests and wait for replication on secondaries

RUBY-545 KillCursors gets sent to wrong member

RUBY-550 socket util module and refactoring