Address comments in moved sharedlib code

This is a follow on to ag/5634563 that addresses several comments in
moved code. This is largely cleanup and optimization work.

Bug: 109941548
Test: atest StaticSharedLibsHostTests
Change-Id: Ic1fcee4e66693a427fc5e7851a5e62d00cda455e
1 file changed