Merge "system/core: Cleanup direct calls to opendir by containing in a std::unique_ptr."