Lock mongodb