(platform/posix) glob namespacing fix

This is a fix for the issue where multiple namespaces
are mapped to the same path and still get traversed
(meaning that we will get duplicate results).