console: check for NULL local VGA instance in TextIO::flip
vmware-gfx: don't break with NOGFX builds
posix: fix a possible use-after-free in waitpid