libvirt.test: Fix some problems in testt code

1.Restart cgconfig and libvirtd after test to recover env
2.Set swap off before memroy test
3.Fix checkpoint after domain install

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>