[registry] fix subregistry re-use (closes #1)