dfc: Correctly manage nested transactions