Fix rare crash when a static variable is being initialized from multiple threads