Fix for bug 1353038: out of range error during multi threaded testing

The problem is due to global variable in T2 drivier native code that is
causing problems in multi threaded testing.  Fix is to change it to
thread specific.

Change-Id: I5d7afe9deeefefa275e35c8fad843164eaf35536
Merge "Fix for bug 1353038: out of range error during multi threaded testing"