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