[entropy.qa] rewrite _get_unresolved_sonames: reduce false positives

Use the provided libraries metadata instead of the content metadata,
which may be really large and error prone. Improve speed and memory
usage as well.