dump_marks(): reimplement using fdopen_lock_file()