ART: Add Runtime::IsSafeMode

Ensure that the safe mode can only be checked in non-zygote
processes.

Bug: 119063276
Test: m test-art-host
Test: device boots
Change-Id: Ibe5bf113c042dfb572c8a94ab17406cb8933ee62
2 files changed