Revert "Revert "Change state to waiting during aborting the VM""

This reverts commit ebb481d070e3fdbb7950580e6f6886c3231a1ad9.

Dex2oatWatchdogTest.TestWatchdogTrigger passed.
Apply the change again.

Test: ART_HEAP_POISONING=true make test-art-host-gtest-dex2oat_test64
Bug: 127875380
Change-Id: If4326990cd612815ffe1511490712ca8babfec55
6 files changed