AUTH: fix failing test regression
IMAP: try to gracefully handle disappearing messages and mailboxes during COPY
add mutex on client state to prevent race