Fix possible race condition when attempting to use QOS on a system running
accounting_storage/filetxt.