[sr-dev] git:master:57144a26: core: add new function pkg_char_dup, similar as shm_char_dup but for PKG memory