perf record: Fix failed memory allocation for get_cpuid_str