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
Bug: 160796914
Test: N/A
Change-Id: Ic90258adad95d3b3c2a6a4758c4e1b5efbedc8fd
1 file changed