Fix check whether SearchTask has been completed
Fix check whether SearchTask has been completed

We have to take in account queries that have not yet been dispatched
but are waiting in SearchTask's queue. This happens when searching
in multiple collections in one resource, becase the queries get
serialized. We can run the query in paralel only on multiple
resources.

kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi,kolab-groupware/akonadi