BUGFIX deadlock on json_lock
diff --git a/src/mod_netconf.c b/src/mod_netconf.c
index 4fb0c41..8bc2435 100644
--- a/src/mod_netconf.c
+++ b/src/mod_netconf.c
@@ -1222,7 +1222,7 @@
 	identifier = json_object_get_string(json_object_object_get(request, "identifier"));
 	version = json_object_get_string(json_object_object_get(request, "version"));
 	format = json_object_get_string(json_object_object_get(request, "format"));
-	pthread_mutex_lock(&json_lock);
+	pthread_mutex_unlock(&json_lock);
 
 	if (identifier == NULL) {
 		return create_error("No identifier for get-schema supplied.");