Lock the mongoid document once it is valid.