[added to the 4.1 stable tree] powerpc/perf: Dereference BHRB entries safely