Thread safe initialization of static variable.