dsdb-repl: merge the logic from libnet_vampire_cb_apply_schema()