Only allow one writer of channels at a time

I don't see any threading in here, so I think this conservative lock is fine. I'll release this to stage, if you can take a look on Monday.