parallel: add local switch to confirm_recursive_rmdir(cherry picked from commit bbdad94d96eec4979077612ef6af16027a9f6baf)