SAL_WARN_UNUSED_RESULT for static Reference::query function

...which the recent loplugin:staticcall changes showed was occasionally used
apparently under the assumption that it was non-static and changed the object
it was called on.

Change-Id: I989a2a4ed3886d7f370855c9e8c1867e646c059b