Lock when creating a channel (#56)