midx: write header information to lockfile