Use ClassStatus::kVisiblyInitialized for allocations.

And move the "intialized but not visibly initialized" check
to ClassLinker::EnsureIntialized().

Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Test: aosp_taimen-userdebug boots.
Test: run-gtests.sh
Test: testrunner.py --target --optimizing
Bug: 36692143
Change-Id: Ib5e19326b1149b2aef586b905ce89470c3a8e405
8 files changed