Lock at mongoid 3.x.