worktree.c: make find_shared_symref() return struct worktree *