Thread safe static initialization