memstreams: fix incorrect handling of file pos > current size
[musl] / lib /
drwxr-xr-x   ..
-rw-r--r-- 0 empty