Fix symbol-value-in-thread GC race condition.