utils: Fix nested transactons

Change-Id: I6f364902e7321a72b6f58552d99074dbe7682b1d
Signed-off-by: Fabian Deutsch <fabiand@fedoraproject.org>