glib-2.0: add search functions for (S)List and Queue

Fixes bug 540415.