Fix container state recording
Fix container state recording

Closes #2686

Signed-off-by: Stéphane Graber <089afc6d81f66f1168a9849e15660feae286e024@ubuntu.com>

lxc/lxd,erikmack/lxd,techtonik/lxd,stgraber/lxd,hallyn/lxd,pcdummy/lxd,georghopp/lxd,chrisglass/lxd,jsavikko/lxd,erikmack/lxd,hallyn/lxd,hallyn/lxd,lxc/lxd,stgraber/lxd,Skarlso/lxd,stgraber/lxd,georghopp/lxd,Skarlso/lxd,jsavikko/lxd,atxwebs/lxd,Skarlso/lxd,stgraber/lxd,stgraber/lxd,erikmack/lxd,pcdummy/lxd,chrisglass/lxd,pcdummy/lxd,stgraber/lxd,georghopp/lxd,atxwebs/lxd,techtonik/lxd,atxwebs/lxd,lxc/lxd,mjeanson/lxd,hallyn/lxd,mjeanson/lxd,lxc/lxd,atxwebs/lxd,techtonik/lxd,jsavikko/lxd,chrisglass/lxd,hallyn/lxd,stgraber/lxd,Skarlso/lxd,lxc/lxd,mjeanson/lxd,lxc/lxd,lxc/lxd,hallyn/lxd