Fix possible _SC_OPEN_MAX max problem on AIX.