close_all_under returned after the last release dropped the generation and before the physical close finished, so rmtree still saw the open handle. Wait directory-matching teardown barriers the same way close_all does.
close_all_under returned after the last release dropped the generation and before the physical close finished, so rmtree still saw the open handle. Wait directory-matching teardown barriers the same way close_all does.