Use sbuf for emitting manifest.

Avoid strdup + strlen by using direct sbuf access in pkg_register
for manifest emitting.