tools: console: Use proper constructor
tools: console: Use proper constructor

"virsh console" on macOS cannot attach to a domain and it doesn't matter if
it's local or remote domain:
  $ ~ virsh console vm
  Connected to domain vm
  Escape character is ^]
  error: internal error: unable to wait on console condition

The error comes from pthread_cond_wait that fails with EINVAL. The mutex
in the parent is not initialized with pthread_mutex_init and it results
in silent failure of pthead_mutex_lock and the attach failure.

Fixes: 98361cc3b95 ("tools: console: make console virLockableObject")
Signed-off-by: Roman Bolshakov <e9c94dff02085feaa10f4659102d5bd952cb2e61@yadro.com>
Reviewed-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

olafhering/libvirt,libvirt/libvirt,olafhering/libvirt,nertpinx/libvirt,crobinso/libvirt,andreabolognani/libvirt,crobinso/libvirt,andreabolognani/libvirt,zippy2/libvirt,zippy2/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,jfehlig/libvirt,andreabolognani/libvirt,jardasgit/libvirt,crobinso/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,libvirt/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,andreabolognani/libvirt,jfehlig/libvirt,jardasgit/libvirt,olafhering/libvirt,zippy2/libvirt,libvirt/libvirt,nertpinx/libvirt,crobinso/libvirt,olafhering/libvirt,libvirt/libvirt,zippy2/libvirt,jardasgit/libvirt,jfehlig/libvirt,jardasgit/libvirt,nertpinx/libvirt,jfehlig/libvirt