search-engine: Query file system to determine remoteness
Querying the file cache in is_recursive_search() does not guarantee that the file system field will be populated with a value, and somehow results in data races, in turn resulting in random crashes/file list corruption.
Hopefully fixes #640 (closed), #632 (closed) and #602 (closed)