Fixed race condition when using mongos_useauth

Fixes #37
Merge pull request #38 from roganartu/master

Fixed race condition when using mongos_useauth