EBADFD -> EBADF

Change typo'ed error code from EBADFD to EBADF, that introduced an
accidental linuxism.