Use ArtMethod::GetImtIndex to avoid recomputing the imt index.

Small inefficiency spotted when investigating b/249522283.

Test: test.py
Bug: 249522283
Change-Id: I96f7a141b2e3ad6669760e2f784a093ce58c277f
1 file changed