Fix session expired errors for multi-threaded clients

Was using the wrong variable before, so if you had a client that was
issuing multiple concurrent requests, sometimes the responses for all
but the latest request would be discarded too soon.