pw_thread: adds the initial pw_thread module

Adds a std::this_thread like API through the pw_thread facades, that
is:
1) this_thread::yield
2) this_thread::sleep_{for,until}
3) this_thread::get_id

This module is split into many different facades in order to let users
decide what functionality they want to use as they may not always
be available, for example when using opaque SDKs.

In addition this provides an initial set of backends based on using
the STL's std::this_thread directly and selects them for the host
target.

Change-Id: I0ee8e4390ba988b2b13e9ee59f976f2333715f1f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/30040
Commit-Queue: Ewout van Bekkum <ewout@google.com>
Reviewed-by: Keir Mierle <keir@google.com>
Reviewed-by: Wyatt Hepler <hepler@google.com>
diff --git a/BUILD.gn b/BUILD.gn
index 246c668..cb7f78c 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -234,6 +234,7 @@
       "$dir_pw_string",
       "$dir_pw_sync",
       "$dir_pw_sys_io",
+      "$dir_pw_thread",
       "$dir_pw_trace",
       "$dir_pw_unit_test",
       "$dir_pw_varint",
@@ -288,6 +289,7 @@
       "$dir_pw_stream:tests",
       "$dir_pw_string:tests",
       "$dir_pw_sync:tests",
+      "$dir_pw_thread:tests",
       "$dir_pw_tokenizer:tests",
       "$dir_pw_trace:tests",
       "$dir_pw_trace_tokenized:tests",