[PATCH openEuler-5.10 17/17] perf data: Close all files in close_dir()