Avoid TREBLE_TESTING_OVERRIDE

This is moved from an environmental variable to a function since
getenv is problematic in multi-threaded testing environments.

Bug: 156668058
Test: N/A (b/160796914)
Change-Id: I065a13e295b368150b1a4a1fc87faa2432ec359b
1 file changed