worktree: handle broken symrefs in find_shared_symref()