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