Fix race condition in reinitialization of the OSGi bridge