vlc_threads: fix thread name length warning
The warning was always triggered because __builtin_constant_p actually checks whether the tested value is constant at compile time and strlen() was never constant at compile time.
Note that __builtin_constant_p can be used with a non-constant test expression while using the same expression after ? in a ternary condition.