[recorder] fix last AQ buffer not properly flushed