Commit r368867 "Fix a layering violation in mutex"
moved "thread_id" from <thread> to <threading_support>.
Along the way the conditions for its presence changed.
Before it only required that threading was supported.
Now it needs that and you not to be using an external
API.
This change restores the old behaviour by putting it
in a separate block with the correct condition.
Any reason this cannot go at the top of the file before _LIBCPP_BEGIN_NAMESPACE_STD?