Fix `CanUseKnownBootImageVarHandle()`.

The first input to `HStaticFieldGet` in not necessarily an
`HLoadClass`. It can be also `HClinitCheck`.

(cherry picked from commit 1fbfa9b23cd1f0b4e00fd82ea999f9530f18b609)

Test: Rely on TreeHugger.
Bug: 191765508
Bug: 230729606
Merged-In: Ib05b0c8a74809698cb5084349959efac4e8f35a7
Change-Id: I4b0867befed15b82fed736cf07d8cb8d630b9cdd
1 file changed