implementing channel locking in qemu-adebug