dsdb:extended_dn_store: split out a extended_replace_dn() function