A simple fix would be to go back to `pthread_getspecific` for `Thread.sm_this`.