[BUGFIX] Use interface in Mapper::injectQueryFactory

Currently Mapper::injectQueryFactory expects a
concrete implementation of QueryFactory instead
of an descendant of QueryFactoryInterface.

Releases: 6.1
Fixes: #35936
Change-Id: Ie4a0cac10e866d8a41497ca31d915c8b1b2d66df
Reviewed-on: https://review.typo3.org/17369
Reviewed-by: Ralf Merz
Reviewed-by: Wouter Wolters
Reviewed-by: Tymoteusz Motylewski
Tested-by: Tymoteusz Motylewski
Reviewed-by: Stefan Froemken
Tested-by: Stefan Froemken