LinksUpdate uses SELECT FOR UPDATE, thus starting a new transaction. So we have to...