search-provider: Reimplement normalize_casefold_and_unaccent

... in terms of g_str_to_ascii. This removes our copy-pasted
unaccenting logic.

Bump GLib dependency to 2.40.0.

https://bugzilla.gnome.org/show_bug.cgi?id=723106