Bugfix: Don't leak lock file's fd into child processes.