log REFACTOR create EMEM messages w/o problems with freeing error structures

Message in ly_err_item is supposed to be dynamically allocated and it is
freed when freeing the structure. But in case we face memory allocation
failures, it is necessary to try to create the structure with a simple
static string without issues with freeing the structure.
diff --git a/src/common.h b/src/common.h
index 1bdec36..28959d9 100644
--- a/src/common.h
+++ b/src/common.h
@@ -102,6 +102,11 @@
 #  define LOGDBG(dbg_group, str, ...) ly_log_dbg(dbg_group, str, ##__VA_ARGS__);
 #endif
 
+/**
+ * Simple EMEM message, it can be safely stored in ::ly_err_item structures without problems when freeing.
+ */
+#define LY_EMEM_MSG "Memory allocation failed."
+
 #define LOGMEM(CTX) LOGERR(CTX, LY_EMEM, "Memory allocation failed (%s()).", __func__)
 #define LOGINT(CTX) LOGERR(CTX, LY_EINT, "Internal error (%s:%d).", __FILE__, __LINE__)
 #define LOGARG(CTX, ARG) LOGERR(CTX, LY_EINVAL, "Invalid argument %s (%s()).", #ARG, __func__)