Hold lock while editing the job logfile.