MDL-57015 tests: Use preventResetByRollback() if test uses transactions