schema mount BUGFIX config-false mount point

Make mounted data config false even when the
mount point schema node is config false.
diff --git a/src/plugins_exts/schema_mount.c b/src/plugins_exts/schema_mount.c
index dce83dd..7aed9a9 100644
--- a/src/plugins_exts/schema_mount.c
+++ b/src/plugins_exts/schema_mount.c
@@ -252,10 +252,13 @@
     }
 
     /* check config */
+    *config = 1;
     if (!lyd_find_path(mpoint, "config", 0, &node) && !strcmp(lyd_get_value(node), "false")) {
         *config = 0;
-    } else {
-        *config = 1;
+    }
+    assert((ext->parent_stmt == LY_STMT_CONTAINER) || (ext->parent_stmt == LY_STMT_LIST));
+    if (((struct lysc_node *)ext->parent)->flags & LYS_CONFIG_R) {
+        *config = 0;
     }
 
     /* check schema-ref */