[libvirt PATCH 09/10] qemusecuritymock: Use automatic mutex management