libdvdcss: better handle partial read in libc_read