[server][HostResourceQueryOption] Add 'const' so that it can be called with a const object.