Got thread logging to work with __thread keys