Here's what I get when I run it:
After some digging, the problem is in base::NumCPUs, which, by the way of InitializeSystemInfo, fails to open /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_min_freq and /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq (the /cpufreq subdir doesn't exist in my VM). These failures are non-fatal, but InitializeSystemInfo doesn't reset errno before returning, and locks.h complains about that.
I didn't see any open issues filed about this in gperftools. Not sure if we care enough to file one, or whether this is a bug in our code (locks.h).