Add the ability to set the name and scheduling properties for threads.