coreutils: Add workaround for unremovable dir tree problem
coreutils: Add workaround for unremovable dir tree problem

Closes #46709.

jiashuw/homebrew,mkrapp/homebrew,hakamadare/homebrew,optikfluffel/homebrew,kevinastone/homebrew,optikfluffel/homebrew,tutumcloud/homebrew,ento/homebrew,tschoonj/homebrew,dutchcoders/homebrew,cosmo0920/homebrew,cprecioso/homebrew,DoomHammer/linuxbrew,gnubila-france/linuxbrew,AlexejK/homebrew,kenips/homebrew,LinusU/homebrew,LinusU/homebrew,ilovezfs/homebrew,brunchboy/homebrew,frodeaa/homebrew,ryanfb/homebrew,theeternalsw0rd/homebrew,Red54/homebrew,georgschoelly/homebrew,gicmo/homebrew,ExtremeMan/homebrew,treyharris/homebrew,ear/homebrew,ento/homebrew,cosmo0920/homebrew,yangj1e/homebrew,knpwrs/homebrew,Homebrew/homebrew,bukzor/linuxbrew,iostat/homebrew2,scorphus/homebrew,chadcatlett/homebrew,influxdata/homebrew,AlexejK/homebrew,lvicentesanchez/homebrew,SteveClement/homebrew,jamer/homebrew,geoff-codes/homebrew,yazuuchi/homebrew,dongcarl/homebrew,ybott/homebrew,nelstrom/homebrew,codeout/homebrew,sferik/homebrew,megahall/homebrew,feelpp/homebrew,zeha/homebrew,scpeters/homebrew,recruit-tech/homebrew,royhodgman/homebrew,nandub/homebrew,OJFord/homebrew,dplarson/homebrew,hyuni/homebrew,pcottle/homebrew,filcab/homebrew,johanhammar/homebrew,osimola/homebrew,teslamint/homebrew,iostat/homebrew2,brunchboy/homebrew,Angeldude/linuxbrew,jab/homebrew,emcrisostomo/homebrew,sferik/homebrew,liamstask/homebrew,retrography/homebrew,saketkc/linuxbrew,cscetbon/homebrew,xcezx/homebrew,vigo/homebrew,skinny-framework/homebrew,razamatan/homebrew,keith/homebrew,mobileoverlord/homebrew-1,mactkg/homebrew,base10/homebrew,gicmo/homebrew,MoSal/homebrew,drbenmorgan/linuxbrew,muellermartin/homebrew,treyharris/homebrew,ebouaziz/linuxbrew,drewwells/homebrew,princeofdarkness76/homebrew,emcrisostomo/homebrew,dongcarl/homebrew,pcottle/homebrew,TaylorMonacelli/homebrew,ear/homebrew,apjanke/homebrew,lvicentesanchez/homebrew,eighthave/homebrew,youtux/homebrew,iostat/homebrew2,Angeldude/linuxbrew,TaylorMonacelli/homebrew,apjanke/homebrew,iandennismiller/homebrew,cchacin/homebrew,MartinDelille/homebrew,reelsense/homebrew,zhipeng-jia/homebrew,decors/homebrew,zchee/homebrew,iandennismiller/homebrew,joshfriend/homebrew,blogabe/homebrew,kenips/homebrew,marcwebbie/homebrew,blogabe/homebrew,dericed/homebrew,skinny-framework/homebrew,AlexejK/homebrew,codeout/homebrew,Homebrew/linuxbrew,mkrapp/homebrew,3van/homebrew,ablyler/homebrew,alebcay/homebrew,Red54/homebrew,reelsense/homebrew,yazuuchi/homebrew,petere/homebrew,cscetbon/homebrew,Linuxbrew/linuxbrew,michaKFromParis/homebrew-sparks,miketheman/homebrew,Chilledheart/homebrew,drbenmorgan/linuxbrew,dalanmiller/homebrew,joshfriend/homebrew,dalanmiller/homebrew,youtux/homebrew,hyuni/homebrew,pdxdan/homebrew,michaKFromParis/homebrew-sparks,dplarson/homebrew,dkotvan/homebrew,keith/homebrew,dongcarl/homebrew,apjanke/homebrew,youtux/homebrew,nelstrom/homebrew,jiashuw/homebrew,hongkongkiwi/homebrew,xcezx/homebrew,scorphus/homebrew,nandub/homebrew,dutchcoders/homebrew,filcab/homebrew,heinzf/homebrew,skatsuta/homebrew,AGWA-forks/homebrew,manphiz/homebrew,ablyler/homebrew,cprecioso/homebrew,megahall/homebrew,Asuranceturix/homebrew,slyphon/homebrew,Homebrew/linuxbrew,kevinastone/homebrew,haihappen/homebrew,ento/homebrew,elyscape/homebrew,recruit-tech/homebrew,dutchcoders/homebrew,elgertam/homebrew,jconley/homebrew,afh/homebrew,ebouaziz/linuxbrew,saketkc/linuxbrew,heinzf/homebrew,galaxy001/homebrew,Homebrew/linuxbrew,optikfluffel/homebrew,zeha/homebrew,koraktor/homebrew,lrascao/homebrew,TaylorMonacelli/homebrew,deorth/homebrew,sjackman/linuxbrew,jsjohnst/homebrew,SteveClement/homebrew,davydden/linuxbrew,haihappen/homebrew,reelsense/homebrew,zchee/homebrew,jamer/homebrew,polishgeeks/homebrew,menivaitsi/homebrew,BrewTestBot/homebrew,davydden/linuxbrew,dkotvan/homebrew,jconley/homebrew,3van/homebrew,brunchboy/homebrew,ilovezfs/homebrew,danieroux/homebrew,tutumcloud/homebrew,vigo/homebrew,hongkongkiwi/homebrew,razamatan/homebrew,filcab/homebrew,xcezx/homebrew,influxdata/homebrew,recruit-tech/homebrew,Gasol/homebrew,osimola/homebrew,Angeldude/linuxbrew,drewwells/homebrew,treyharris/homebrew,deorth/homebrew,teslamint/homebrew,filcab/homebrew,johanhammar/homebrew,razamatan/homebrew,reelsense/linuxbrew,optikfluffel/homebrew,dkotvan/homebrew,mobileoverlord/homebrew-1,slyphon/homebrew,jab/homebrew,scpeters/homebrew,elyscape/homebrew,scpeters/homebrew,MartinDelille/homebrew,nandub/homebrew,xcezx/homebrew,feelpp/homebrew,zeha/homebrew,eighthave/homebrew,DoomHammer/linuxbrew,scorphus/homebrew,chadcatlett/homebrew,frodeaa/homebrew,josa42/homebrew,joshua-rutherford/homebrew,ralic/homebrew,iostat/homebrew2,dericed/homebrew,MoSal/homebrew,ablyler/homebrew,sferik/homebrew,BrewTestBot/homebrew,OJFord/homebrew,pcottle/homebrew,hakamadare/homebrew,influxdb/homebrew,afh/homebrew,dickeyxxx/homebrew,nelstrom/homebrew,joshua-rutherford/homebrew,frodeaa/homebrew,elyscape/homebrew,SteveClement/homebrew,tschoonj/homebrew,elyscape/homebrew,gicmo/homebrew,sometimesfood/homebrew,Chilledheart/homebrew,muellermartin/homebrew,skatsuta/homebrew,getgauge/homebrew,princeofdarkness76/homebrew,DoomHammer/linuxbrew,Linuxbrew/linuxbrew,AGWA-forks/homebrew,codeout/homebrew,DoomHammer/linuxbrew,BrewTestBot/homebrew,slyphon/homebrew,ehamberg/homebrew,quantumsteve/homebrew,yangj1e/homebrew,3van/homebrew,sjackman/linuxbrew,sferik/homebrew,miketheman/homebrew,cosmo0920/homebrew,thinker0/homebrew,mmizutani/homebrew,mobileoverlord/homebrew-1,frodeaa/homebrew,quantumsteve/homebrew,kodabb/homebrew,kodabb/homebrew,bukzor/linuxbrew,pdxdan/homebrew,manphiz/homebrew,dgageot/homebrew,jsjohnst/homebrew,lrascao/homebrew,drewwells/homebrew,georgschoelly/homebrew,mactkg/homebrew,pdxdan/homebrew,ralic/homebrew,zhipeng-jia/homebrew,reelsense/homebrew,hakamadare/homebrew,reelsense/linuxbrew,yazuuchi/homebrew,kenips/homebrew,TaylorMonacelli/homebrew,sakra/homebrew,hanxue/homebrew,mmizutani/homebrew,eighthave/homebrew,petere/homebrew,megahall/homebrew,ralic/homebrew,gnubila-france/linuxbrew,zeha/homebrew,booi/homebrew,brunchboy/homebrew,AGWA-forks/homebrew,apjanke/homebrew,ehamberg/homebrew,galaxy001/homebrew,petere/homebrew,dongcarl/homebrew,sjackman/linuxbrew,MoSal/homebrew,josa42/homebrew,miketheman/homebrew,Homebrew/homebrew,josa42/homebrew,OJFord/homebrew,utzig/homebrew,knpwrs/homebrew,eighthave/homebrew,yangj1e/homebrew,Homebrew/homebrew,SuperNEMO-DBD/cadfaelbrew,theeternalsw0rd/homebrew,SteveClement/homebrew,joshua-rutherford/homebrew,mmizutani/homebrew,haihappen/homebrew,dickeyxxx/homebrew,scpeters/homebrew,ablyler/homebrew,adamliter/homebrew,hyuni/homebrew,iandennismiller/homebrew,3van/homebrew,redpen-cc/homebrew,lvicentesanchez/homebrew,marcwebbie/homebrew,ryanfb/homebrew,joshfriend/homebrew,treyharris/homebrew,emcrisostomo/homebrew,thinker0/homebrew,osimola/homebrew,retrography/homebrew,zchee/homebrew,kevinastone/homebrew,slyphon/homebrew,utzig/homebrew,jab/homebrew,ybott/homebrew,heinzf/homebrew,Chilledheart/homebrew,royhodgman/homebrew,retrography/homebrew,davydden/linuxbrew,chadcatlett/homebrew,dunn/homebrew,skinny-framework/homebrew,skinny-framework/homebrew,sometimesfood/homebrew,influxdata/homebrew,geoff-codes/homebrew,cprecioso/homebrew,marcwebbie/homebrew,alebcay/homebrew,elgertam/homebrew,teslamint/homebrew,decors/homebrew,tschoonj/homebrew,lrascao/homebrew,sakra/homebrew,feelpp/homebrew,yumitsu/homebrew,muellermartin/homebrew,Gasol/homebrew,osimola/homebrew,benjaminfrank/homebrew,ryanfb/homebrew,esamson/homebrew,dplarson/homebrew,sometimesfood/homebrew,zhipeng-jia/homebrew,michaKFromParis/homebrew-sparks,AlexejK/homebrew,MartinDelille/homebrew,galaxy001/homebrew,thinker0/homebrew,mmizutani/homebrew,Asuranceturix/homebrew,dgageot/homebrew,ento/homebrew,galaxy001/homebrew,OJFord/homebrew,georgschoelly/homebrew,danieroux/homebrew,dickeyxxx/homebrew,influxdb/homebrew,Linuxbrew/linuxbrew,kevinastone/homebrew,gawbul/homebrew,totalvoidness/homebrew,nelstrom/homebrew,Gasol/homebrew,cchacin/homebrew,vigo/homebrew,jamer/homebrew,petere/homebrew,jiashuw/homebrew,muellermartin/homebrew,elgertam/homebrew,thinker0/homebrew,royhodgman/homebrew,redpen-cc/homebrew,booi/homebrew,dgageot/homebrew,keith/homebrew,dericed/homebrew,dunn/homebrew,retrography/homebrew,Asuranceturix/homebrew,skatsuta/homebrew,bigbes/homebrew,bukzor/linuxbrew,heinzf/homebrew,polishgeeks/homebrew,elgertam/homebrew,drbenmorgan/linuxbrew,cchacin/homebrew,influxdb/homebrew,polishgeeks/homebrew,manphiz/homebrew,koraktor/homebrew,danieroux/homebrew,ilovezfs/homebrew,Gasol/homebrew,base10/homebrew,ralic/homebrew,arnested/homebrew,yazuuchi/homebrew,Angeldude/linuxbrew,jiashuw/homebrew,ebouaziz/linuxbrew,hanxue/homebrew,liamstask/homebrew,knpwrs/homebrew,haihappen/homebrew,dutchcoders/homebrew,ybott/homebrew,adamliter/homebrew,dalanmiller/homebrew,LinusU/homebrew,benjaminfrank/homebrew,gawbul/homebrew,afh/homebrew,polishgeeks/homebrew,MartinDelille/homebrew,theeternalsw0rd/homebrew,liamstask/homebrew,LinusU/homebrew,jamer/homebrew,bigbes/homebrew,ebouaziz/linuxbrew,saketkc/linuxbrew,jarrettmeyer/homebrew,MoSal/homebrew,blogabe/homebrew,sjackman/linuxbrew,deorth/homebrew,dgageot/homebrew,marcwebbie/homebrew,gnubila-france/linuxbrew,ExtremeMan/homebrew,benjaminfrank/homebrew,zhipeng-jia/homebrew,totalvoidness/homebrew,liamstask/homebrew,vigo/homebrew,adamliter/homebrew,Red54/homebrew,redpen-cc/homebrew,jarrettmeyer/homebrew,lvicentesanchez/homebrew,tutumcloud/homebrew,hakamadare/homebrew,totalvoidness/homebrew,yumitsu/homebrew,reelsense/linuxbrew,BrewTestBot/homebrew,arnested/homebrew,influxdata/homebrew,dkotvan/homebrew,knpwrs/homebrew,cprecioso/homebrew,jarrettmeyer/homebrew,hanxue/homebrew,Chilledheart/homebrew,keith/homebrew,princeofdarkness76/homebrew,pcottle/homebrew,totalvoidness/homebrew,afh/homebrew,dunn/homebrew,mkrapp/homebrew,bigbes/homebrew,megahall/homebrew,theeternalsw0rd/homebrew,esamson/homebrew,tutumcloud/homebrew,ehamberg/homebrew,Asuranceturix/homebrew,redpen-cc/homebrew,ear/homebrew,bukzor/linuxbrew,kodabb/homebrew,geoff-codes/homebrew,tschoonj/homebrew,esamson/homebrew,hyuni/homebrew,koraktor/homebrew,menivaitsi/homebrew,georgschoelly/homebrew,base10/homebrew,kenips/homebrew,menivaitsi/homebrew,AGWA-forks/homebrew,kodabb/homebrew,sakra/homebrew,manphiz/homebrew,davydden/linuxbrew,yangj1e/homebrew,Red54/homebrew,scorphus/homebrew,dunn/homebrew,jconley/homebrew,mactkg/homebrew,recruit-tech/homebrew,koraktor/homebrew,alebcay/homebrew,getgauge/homebrew,gawbul/homebrew,drewwells/homebrew,princeofdarkness76/homebrew,jsjohnst/homebrew,gicmo/homebrew,zchee/homebrew,yumitsu/homebrew,SteveClement/homebrew,quantumsteve/homebrew,emcrisostomo/homebrew,esamson/homebrew,jconley/homebrew,cscetbon/homebrew,razamatan/homebrew,influxdb/homebrew,teslamint/homebrew,getgauge/homebrew,getgauge/homebrew,utzig/homebrew,adamliter/homebrew,hongkongkiwi/homebrew,Asuranceturix/homebrew,dickeyxxx/homebrew,reelsense/linuxbrew,ehamberg/homebrew,dalanmiller/homebrew,utzig/homebrew,hongkongkiwi/homebrew,arnested/homebrew,alebcay/homebrew,sometimesfood/homebrew,ryanfb/homebrew,SuperNEMO-DBD/cadfaelbrew,booi/homebrew,jab/homebrew,mactkg/homebrew,cchacin/homebrew,pdxdan/homebrew,feelpp/homebrew,ExtremeMan/homebrew,sakra/homebrew,danieroux/homebrew,johanhammar/homebrew,ilovezfs/homebrew,jsjohnst/homebrew,johanhammar/homebrew,iandennismiller/homebrew,dericed/homebrew,hanxue/homebrew,geoff-codes/homebrew,miketheman/homebrew,quantumsteve/homebrew,blogabe/homebrew,codeout/homebrew,Linuxbrew/linuxbrew,SuperNEMO-DBD/cadfaelbrew,dplarson/homebrew,royhodgman/homebrew,ExtremeMan/homebrew,pcottle/homebrew,Homebrew/homebrew,bigbes/homebrew,base10/homebrew,gnubila-france/linuxbrew,drbenmorgan/linuxbrew,menivaitsi/homebrew,cosmo0920/homebrew,joshua-rutherford/homebrew,ear/homebrew,decors/homebrew,ybott/homebrew,mobileoverlord/homebrew-1,Homebrew/linuxbrew,nandub/homebrew,arnested/homebrew,decors/homebrew,skatsuta/homebrew,youtux/homebrew,jarrettmeyer/homebrew,benjaminfrank/homebrew,SuperNEMO-DBD/cadfaelbrew,saketkc/linuxbrew