schema compile FEATURE disabled bits/enums unres

Do not remove the values right away to allow
other checks (XPath) to finish first.
Fixes cesnet/netopeer2#1048
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index 3b9dfdb..3f3d753 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -648,7 +648,7 @@
     free(*pattern);
 }
 
-static void
+void
 lysc_enum_item_free(struct ly_ctx *ctx, struct lysc_type_bitenum_item *item)
 {
     lydict_remove(ctx, item->name);