Synchronized various methods in QueryResult
Fixed ObjectHandle writeExternal/readExternal exception when Invid is null