perf thread_map: Introduce thread_map__reset function