Add macos versions of thread name setting
This MR makes setting the name of threads be compatible with macos, which has a slightly different syntax.
This MR makes setting the name of threads be compatible with macos, which has a slightly different syntax.