Remove CHA dependencies for class unloading when JIT is disabled

When a linear alloc is unloaded, remove the corresponding CHA
dependencies to prevent any dangling pointers to ArtMethods.

Bug: 63905544
Bug: 63467744
Test: test-art-host

(cherry-picked from commit cf79cf51feeea395a965c8dc452f86be60c00aab)

Change-Id: I2a9bd434bfa89aa01ebb603cb2ae31afcb002f58
3 files changed