log error if virConnectCacheOnceInit() fails
log error if virConnectCacheOnceInit() fails

virGetConnectNetwork() calls
 virGetConnectGeneric(), which calls
  virConnecCacheInitialize(), which is actually a call (only once) to
   virConnectCacheOnceInit() which calls
    virThreadLocalInit() several times, which calls
     pthread_key_create()

If pthread_key_create() fails, it (of course) doesn't log an error
(because it's not a part of libvirt), nor does any other function on
the call chain all the way up to virGetConnectNetwork(). But none of
the callers of virGetConnectNetwork() log an error either, so it is
possible that an API could fail due to virGetConnectNetwork() failing,
but would only log "an error was encountered, but the cause is
unknown. Deal with it."  (paraphrasing).

(In all likelyhood, virConnectCacheOnceInit() is going to be called at
some earlier time, and almost certainly pthread_key_create() will
never fail (and if it does, the user will have *much* bigger problems
than an obtuse error message from libvirt)).

Signed-off-by: Laine Stump <c23361c43fbf79fed83e8b76173707b083d6caf5@redhat.com>
Reviewed-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

jfehlig/libvirt,nertpinx/libvirt,libvirt/libvirt,libvirt/libvirt,jfehlig/libvirt,olafhering/libvirt,jfehlig/libvirt,olafhering/libvirt,nertpinx/libvirt,zippy2/libvirt,zippy2/libvirt,nertpinx/libvirt,jfehlig/libvirt,olafhering/libvirt,crobinso/libvirt,crobinso/libvirt,crobinso/libvirt,olafhering/libvirt,zippy2/libvirt,nertpinx/libvirt,crobinso/libvirt,libvirt/libvirt,zippy2/libvirt,libvirt/libvirt,nertpinx/libvirt