HeaderSearch was marking requested HeaderFileInfo as Resolved only based on
the presence of ExternalSource. As the result, using any module was enough
to set ExternalSource and headers unknown to this module would have
HeaderFileInfo with empty fields, including isImport = 0, NumIncludes = 0.
Such HeaderFileInfo was preserved without changes regardless of how the
header was used in other modules and caused incorrect result in
HeaderSearch::ShouldEnterIncludeFile.
Fix by marking HeaderFileInfo as Resolved only if ExternalSource knows
about this header.
rdar://problem/62126911