Fix an error when permessage-deflate is enabled and closing socket

Fixed an error and data loss happen when socket closing.
I enabled `permessage-deflate` by default again, but at least, we might should disable it until are convinced it's stable enough.

Related: https://github.com/einaros/ws/pull/409, https://github.com/primus/primus/issues/319