perf tools: Fix calloc() arguments to address error introduced in gcc-14