MongoDB locks implemented.