[server] fix 'cnx' variable confusion in DBG_SQL exception case
The rollback handling expects 'cnx' to be the cubicweb Connection, but
the DBG_SQL block was replacing it with an sql connection, leading to
lulz down the line. Also remove obsolete getattr (the sqlite wrapping
is now done at the cnxset level, so cnx.cnxset.cnx should be the right
thing already).
usr/lib/PY_VERSION/*-packages/cubicweb/devtools/
usr/lib/PY_VERSION/*-packages/cubicweb/skeleton/
usr/lib/PY_VERSION/*-packages/cubicweb/test
usr/lib/PY_VERSION/*-packages/cubicweb/entities/test
usr/lib/PY_VERSION/*-packages/cubicweb/ext/test
usr/lib/PY_VERSION/*-packages/cubicweb/server/test
usr/lib/PY_VERSION/*-packages/cubicweb/sobjects/test
usr/lib/PY_VERSION/*-packages/cubicweb/hooks/test
usr/lib/PY_VERSION/*-packages/cubicweb/web/test
usr/lib/PY_VERSION/*-packages/cubicweb/etwist/test