Correctly set thread names