golang: tests: Call or defer g.Close().
golang: Don't try to free the result of guestfs_last_error.

The return value is a constant string, part of the handle, and
it must not be freed by the golang code.