Optimize CqlProtocolHandler#next_channel_id

Up to twice as fast.
Change from Mutex#synchronize to #lock/#unlock in hot paths