Avoid dangling pointers in DexCache in jvmti redefinition.

It could be dangerous to have a DexCache holding a dangling dex file. So
just clear it if we know the dex file is going to be deleted.

Test: test.py
Change-Id: I115a733d7035778fb9cf6c34cdbb3f5889bfd735
1 file changed