sftp putfo(): don't close destination file pointer until we have stat'd it - avoids situation where something on the remote end (e.g. inotify) removes files immediately after they're written