virNWFilterSnoopState: Prevent mutex leak
virNWFilterSnoopState: Prevent mutex leak

virNWFilterDHCPSnoopShutdown would never destroy the mutexes created
in virNWFilterDHCPSnoopInit. Additionally, if in virNWFilterDHCPSnoopInit
the call to virMutexInitRecursive succeeds and the call to virMutexInit
fails, this would lead to either virNWFilterSnoopState.snoopLock being
initialized twice or virNWFilterSnoopState.activeLock destroyed without
being initialized first.

This enables a later patch to use virNWFilterDHCPSnoopShutdown as a
cleanup function safely, as it is a no-op if virNWFilterSnoopState was
not yet initialized.

Signed-off-by: Tim Wiederhake <da93ee425e056cfcf1ddac9fc87851b25464abf4@redhat.com>
Reviewed-by: Michal Privoznik <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>

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