Stdio.sendfile: Fixed handling of file length argument in nb_sendfile.

Fixes [bug 6118].