Fix image bug around clinit and nterp.

nterp trampoline doesn't do clinit checks, so we should install the
resolution stub if a method needs a clinit check before being entered.

Test: 818-clinit-nterp
Bug: 178992601
Change-Id: I9d6b023a6c6620adfcd2a6ed5cd1e042a7cb449b
9 files changed