winbindd/idmap_ad: refactor core of nss_{sfu|sfu20|rfc2307}_init to common function.