repro case for removing directories while traversing

I expect one just needs to stat the dir before trying to open it.