Fix incorrect dex-cache clearing with structural redefinition am: bf6498e3d9 am: a590d87678 am: c4cd47c21b am: 42b94981ee

Original change: https://android-review.googlesource.com/c/platform/art/+/1369358

Change-Id: Ie6cecfbb7642c600e0773a038cf83a006304e840