Fix Db-analyser incorrect handling of resource registries
If the same registry was given to the validation logic, when committing a forker weird things would happen. This creates a new registry just for that step