Add error handler for os.rmtree calls (#30169)
Add error handler for os.rmtree calls (#30169)

In cases wher rmtree encounters an error, attempt to fix file
permissions and re-run the failing operation.

Issue: https://github.com/flutter/flutter/issues/94492
flutter/engine,flutter/engine,chinmaygarde/flutter_engine,devoncarew/engine,jason-simmons/flutter_engine,rmacnak-google/engine,rmacnak-google/engine,devoncarew/engine,devoncarew/engine,jason-simmons/flutter_engine,jason-simmons/flutter_engine,jason-simmons/flutter_engine,rmacnak-google/engine,jason-simmons/flutter_engine,jason-simmons/flutter_engine,chinmaygarde/flutter_engine,devoncarew/engine,chinmaygarde/flutter_engine,rmacnak-google/engine,devoncarew/engine,flutter/engine,flutter/engine,chinmaygarde/flutter_engine,rmacnak-google/engine,flutter/engine,devoncarew/engine,flutter/engine,jason-simmons/flutter_engine,rmacnak-google/engine,devoncarew/engine,flutter/engine,chinmaygarde/flutter_engine,flutter/engine,chinmaygarde/flutter_engine,jason-simmons/flutter_engine,rmacnak-google/engine,chinmaygarde/flutter_engine