Reset signal_thread_key upon cancellation.