Thread-creation user callback
This is a replacement for !198 (closed).
Make it possible to supply a callback to the library that is invoked when a thread is created. This makes it possible for the calling application to control thread-placement which can be useful in systems with tight real-time requirements or systems with more than 1 NUMA node to optimize memory latency.