Make sure refs/rewritten/ is per-worktree