s3:winbindd: factor winbindd_sids_to_xids into external and internal part