memstreams: fix incorrect handling of file pos > current size
[musl] / src / thread / syscall_cp.c