Zero custom_*_ext_records_count if realloc fails.