Honor locale time settings in lock screen

Closes https://github.com/mate-desktop/mate-screensaver/pull/47
Bump minimum GTK2 and GLIB versions
Remove some old code after GLIB and GTK2 minimum version bump
Dont call g_thread_init
Don't use deprecated GLib threading API.