Issue #28353: Make test_os.WalkTests.test_walk_bad_dir stable.