wined3d: Make the device parameter to wined3d_event_query_finish() const.