[PATCH v2 2/3] security: Rewrite virSecurityManagerCheckModel() to use g_autofree