s4/drs: dsdb_read_prefixes_from_ldb() refactored