path REFACTOR implement leafref modules beforehand

Unify with XPath.
diff --git a/src/xpath.c b/src/xpath.c
index a4856bc..de7a69a 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -3766,7 +3766,7 @@
 
             /* it was already evaluated on schema, it must succeed */
             r = ly_path_compile_leafref(set->ctx, &sleaf->node, NULL, lref->path, oper, LY_PATH_TARGET_MANY,
-                    LY_VALUE_SCHEMA_RESOLVED, lref->prefixes, NULL, &p);
+                    LY_VALUE_SCHEMA_RESOLVED, lref->prefixes, &p);
             if (!r) {
                 /* get the target node */
                 target = p[LY_ARRAY_COUNT(p) - 1].node;