[Bug 43902] close() on a closed fd should set errno to EBADF