[PATCH 3.16 354/366] perf script: Use readdir() instead of deprecated readdir_r()