CORE-1584 Unable do rollback not in transaction block. Added checking runInTransaction

Enable auto-commit in begin of rollback(). And restore it to false after. It is same to execute() method.