Fix lookup_unix_user_name to support realm-qualified lookups
Fixes lookups from Windows clients when using Global Catalog searches.
Required for upcoming FreeIPA Global Catalog support.
(cherry picked from commit 1e29c417eb5e3dbfad31e7e7ff121367d4397a3d)