Mt search2

Minor multithreading changes for keyword search module, to be merged after "Search concurrency" pull request.