We don't really need volatile + CAS here. If multiple threads are writing/reading a channel with no happens-before event then this is a bug anyway. 

Turns out that volatile writes and CAS are actually relatively expensive, we have actually been removing them as much as possible from Undertow and XNIO recently.