[SSHD-375] Buffer.MAX_LEN and DefaultSftpClient#write() don't play well together