[PATCH 5.10 046/167] perf data: Close all files in close_dir()