msg/Pipe: discard delay queue before incoming queue

Shutdown the delayed delivery before the incoming queue in case a racing
thread is busy queueing messages.

Fixes: #9910
Signed-off-by: Sage Weil <sage@redhat.com>