Fix searching by extern_uid for LDAP to be case-insensitive

When LDAP returns user’s DN in different case (due to same change on LDAP), then GitLab doesn’t find this user and try to create a new one. LDAP distinguished names (DN) are case-insensitive per standard, so GitLab should compare `extern_uid` in case-insensitive manner.