commit: correctly respect skip-worktree bit