[Truffle] Make $_ thread local - at the same time as being frame local.

We achieve this by wrapping the value in a ThreadLocal when it's
assigned, giving it the default value nil for other threads.