Enclose additional pa_* calls into pa_threaded_loop_lock()/unlock(). This seems to eliminate abort/deadlocks.