queryservice: categorize read-only errors as RETRY

When we get a read-only error, it means that the current
server is not the master anymore. Categorize such errors
as RETRY, which will make the clients re-resolve to the
new master.
Merge branch 'master' into monitoring
Merge branch 'master' into monitoring