registry: set target state in CreateUnit