commit.c: use ref transactions for updates