search_dequeue_all_nodes(): must also iterate on G2 nodes.

When a search was closed, we were not looping over the search queues of G2
nodes, leaving search messages in place that were later failing to be processed
after the search ID was cleared by search_close().
Use PSLIST_FOREACH() to iterate over single lists.
Use PLIST_FOREACH() for plain two-way list iterations.