Fix file descriptor reference count leak.
Approved by: so Security: FreeBSD-SA-19:17.fd Security: CVE-2019-5607