Fixed shm_malloc_unsafe macro when using DBG_QM_MALLOC flag