Use get_state() instead of .state in rqinfo

Since the worker now raises a deprecation error on worker.state, we need to use get_state() also in rqinfo.