Add a mutex to HTTPLogger to avoid mixing lines with the new yield behavior of ThreadedFile.