Revert "Remove all transaction sharing code between cursor and regular updates."

This reverts commit 91b0fe5deca0c908152c67a77bed4477b0ab94f4.
Introduced hanging in migration tests. In master, those are now disabled, but
need to first find out where the deadlocks come from in those tests.