[libvirt] [PATCH v3 3/5] tools: console: add missing locks in callbacks