Add function set_thread_credentials_permanently(). Panic if fail.