Variant of rawQueryWithFactory added that takes an cancellation signal.

SQLiteQueryBuilder needs it.
Merge pull request #816 from aahlenst/raw-query-with-cancellation

Make SQLiteQueryBuilder work