benchmarks: Fix potential stack corruption in capsnego test