lock mongodb cookbook hash