engine: make QueryData immutable (7/N)

QueryData instances are shared between threads, it is safer to make the
class immutable.

Change-Id: I0d96ecd50b7fe86fa450e2288affcb9cdf58417f
Signed-off-by: Laszlo Hornyak <lhornyak@redhat.com>