s4-dsdb: make extended_dn_in a bit more efficient