make pa_thread_self() return a sensible pointer on foreign threads