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