support version locks

based on this upstream pull request
https://github.com/MongoEngine/mongoengine/pull/276
Don't think it's being used.  I had to clean up a couple other imports that weren't being used but I missed this one.