@Override
 public Iterator<UniquenessConstraint> constraintsGetForLabelAndPropertyKey(
     KernelStatement state, int labelId, int propertyKeyId) {
   state.locks().acquireShared(ResourceTypes.SCHEMA, schemaResource());
   return schemaReadDelegate.constraintsGetForLabelAndPropertyKey(state, labelId, propertyKeyId);
 }
 @Override
 public Iterator<UniquenessConstraint> constraintsGetForLabelAndPropertyKey(
     KernelStatement state, int labelId, int propertyKeyId) {
   state.locks().acquireSchemaReadLock();
   return schemaReadDelegate.constraintsGetForLabelAndPropertyKey(state, labelId, propertyKeyId);
 }