Prevent concurrent writes on jobs.xml.