s3:registry: extract reg_perfcount prototypes into header of their own.