fix CLOUDSRV-4204 Upgrading mongodb driver to 1.11.1

# Ticket
https://jira.appcelerator.org/browse/CLOUDSRV-4204

# Description
ACS will upgrade mongo ruby driver, so mongoid need to make some related changes.
@baobeimm , i think your ways is more good, so i will change the code. thanks.