Add lock for container update Upstream-commit: 241f6d71078916e987e131e3dd07beb0c5a1242e Component: engine