xupdate: call write_mainfile_protector() on uploading protector too