Only update declared methods during class redefinition.

We were attempting to update the dex file indexes of copied methods
during class redefinition. Since these methods are not in the
redefined (or even original, necessarily) dex file this causes CHECK
failures.

Bug: 63864937
Test: ./test.py --host -j50
Change-Id: Ieb3a7bde42ef9da651810094e7b8143e2dba9f61
(cherry picked from commit 00e475ca4dd6697d323f2c2f96d74c7ea9dff861)
12 files changed