Support static fields with multiple threads properly.