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: libbinderthreadstateutils_test
Change-Id: Iab84111c219af4fdf01f4fc74b9dbc4db8bc441d
1 file changed