Implement GetThreadCount on Linux.