removed unneeded code from safe_static_initialization