GoSafeOpt: Scalable Safe Exploration for Global Optimization of Dynamical Systems