pub fn ensure_state_dir( repo_root: &Path, home_override: Option<&Path>, ) -> Result<(), WorktreeError>
Ensure the state directory exists. Called from Manager::new().