[mod_cgi] fix pipe_cloexec() when no O_CLOEXEC