Synchronize container threads while deploying to avoid random app regist...

...ration