audiocapture: run stop and cancel in separate threads to avoid server thread lock.