Do not use thread_specific_ptr for this_thread::get_id().

This allows not linking with Boost.Thread, which can
create circular dependencies.