fdopen_lock_file(): access a lockfile using stdio