add transaction and lock to build_updater