demux: adaptive: use mutable keywork on locks