add accessor functions for the userdata attached to a pa_thread object