Revert^2 "Support clinit for app image during compilation"

Add some spot fixes for app image class initialization and re-enable
test 660 features.

Bug: 70735003
Test: test-art-host

This reverts commit abadf024efdc632f663d7fb503cd277b3f65fca2.

Change-Id: Id16fd3ada3eb1bd57ea60c3cdc4a0cf9835950d7
diff --git a/runtime/aot_class_linker.h b/runtime/aot_class_linker.h
index 6a8133e..74da33d 100644
--- a/runtime/aot_class_linker.h
+++ b/runtime/aot_class_linker.h
@@ -37,6 +37,13 @@
       override
       REQUIRES_SHARED(Locks::mutator_lock_);
 
+  // Override AllocClass because aot compiler will need to perform a transaction check to determine
+  // can we allocate class from heap.
+  bool CanAllocClass()
+      override
+      REQUIRES_SHARED(Locks::mutator_lock_)
+      REQUIRES(!Roles::uninterruptible_);
+
   bool InitializeClass(Thread *self,
                        Handle<mirror::Class> klass,
                        bool can_run_clinit,