smb: Fix problem when reading after end-of-file over CIFS/SMB shares

This resulted in various hangs and OOM crashes when reading files
over CIFS/SMB

Fixes #1695