Fixed race condition when using mongos_useauth

Fixes #37