Fix filescanner threading