Only set the thread name if it is provided