Coverity: Don't close fd_cwd if fd_cwd == -1.