Protect cleared regions

Prevent allowing threads seeing references to cleared regions.
This accomplished by using mprotect.

Also refactored some of the code.

Bug: 37187694
Test: test-art-host
Change-Id: I3bdcd08877835962780d55c9c2c521ccda8bc055
1 file changed