Add synchronization for Application::connect() method to make sure, all ...

...class loaders and managers have been initialized