Add Host::GetMaxThreadNameLength(), and use to key off private state thread name.

Adds custom GetMaxThreadNameLength() calls for Linux, FreeBSD and MacOSX.
(The MacOSX one needs somebody at Apple to fill in the real value, I'm
just using the inferred max length from the get method).

Use the GetMaxThreadNameLength() to choose when to use the abbreviated
private state thread names.