ART: Scope localrefs for stackoverflow handling

Ensure that the destructor runs before the thread's stack is
protected, so as to have enough space to run the destructor
in.

Bug: 116586190
Test: SANITIZE_HOST=address art/test/testrunner/testrunner.py -b --host -t 004-SignalTest
Change-Id: I1b961e2a95a2cf91a6c25e9bf1c504e1a957d348
1 file changed