`chan->mutex` should be deinitalized on failure here.