sftp: Fix handling of multiple reads of the packet length

In certain cases, reading the packet length may take more than one call.
Make this work by calculating the offset into the reply_size correctly.

https://bugzilla.gnome.org/show_bug.cgi?id=532951