Avoid setting thread names twice