pub fn reset_worktree_for_testing_sync()
Sync wrapper for test isolation (called from clear_all_test_state)
clear_all_test_state