Switch dom_info structure from being malloced to be on the stack so we n...

...eed less logic to keep track of its memory. This PR also fixes a minor issue of xc_domain_getinfolist being called with dom_info being NULL (before its malloced).