socket-unix.cxx: Fix compilation on DragonflyBSD.

The signature of trySetCloseOnExec() has changed but this use has not been
updated.