Add locked to schema.