listcomponents: skip factories from other libraries
Skip factories from other shared libraries when creating the .components
files. This was already done in genconf
but was missing here.
This fixes a problem recently seen in ATLAS (internal issue ATLINFR-5427) where by mistake a static dependency to GaudiCoreSvc was created in a component library and all core Gaudi services then ended up as "belonging" to that component library.