gssh: Add API to retrieve exit code

...and squash some dead code that caused a compiler warning in
GSshChannelInputStream.