xen/privcmd: fix condition in privcmd_close()