LinkTarget: Avoid unnecessary library re-building in DISABLE_DYNLOADING case.

Change-Id: If469348f2385ef8009cf5a33f66f22d4a0e65070