worktree.c: store "id" instead of "git_dir"