Fix parsing of shared libraries in class loader context.

The code did not take into account shared libraries depending
on other shared libraries.

bug: 111174995
Test: class_loader_context_test
Change-Id: I0b90cfaff72b5bd7985dbe90b5e72d5988141490
2 files changed