Adjust instrumentation CHECK to be correct WRT obsolete methods

Some instrumentation sanity-check code didn't take into account
obsolete methods and so could sometimes spuriously fail if the right
sequence of redefines and deoptimizations occur.

This can occur if one tries debugging a test using inline-mockito, for
example.

Test: atest -wbit RecentsAnimationTest and attach debugger with
      breakpoint in test
Test: ./test.py --host

Bug: 120630577

Change-Id: Iaeb79aebb084990b397e59f56a186e0feaffd654
8 files changed