SFTPStream: prevent 'write after end' errors
SFTPStream: group more argument checks together
SFTPStream: parse and store extension data
SFTPStream: support OpenSSH extended requests on client