[libvirt] [PATCH v4 36/42] remote: fix lock ordering mistake in event registration