FileAttributesFactory: allow to return a superclass of a required class

For instance, if no "owner" provider is registered but an "acl" one is, return
the "acl" one instead.