MB-19273: Fix data race on PassiveStream::buffer.{bytes,items}