worktree: add utility to find worktree by pathname