Test for thread_local support

If we say we support C++11 threads, let's make sure we support C++11
threads
Propagate threads.m4 change to configure