NIF-based Prometheus text format parser.
Parses the entire Prometheus exposition body in a single NIF call,
returning {entries, error_count} where entries is a list of
{metric_name, labels_proplist, value, timestamp} tuples.
Lines without timestamps use 0 as sentinel.