s3:registry: add a regsubkey_ctr_init function for allocating a regsubkey_ctr