Synchronize container threads while deploying to avoid random app registration