s3:registry: extract the reg_util prototypes into their own header.