[libvirt] [PATCH v3 36/48] remote: fix lock ordering mistake in event registration