Bugfix: Global sem/mem free now also skip registry

Signed-off-by: Shahbaz Youssefi <ShabbyX@gmail.com>