Fixed some multithreading issues in the Audio UI.