[sr-dev] git:master:e3ecad34: core: use generic PKG_MEM_ERROR, SHM_ERROR and _CRITICAL helper defines in core