[PATCH 5.10 08/29] perf data: Fix error return code in perf_data__create_dir()