[PATCH 4.9 321/329] perf report: Fix memory corruption in --branch-history mode --branch-history