add setter and getter wrapper for thread local variables so wrappers not understanding __thread can use them

Signed-off-by: Mattias Andrée <maandree@operamail.com>