Fix request-reply issue

When Requester and Replier run in the same process and Replier handles a request message, ensure the Replier does not process the request as a reply message.
Also fixed a bug in ConsumerShutdown which was causing a request process to hang.