BUG Fix correct usage of transactional code using current SS_Database API

Using LOCK TABLE causes issues with some extensions and database hooks (fulltextsearch in particular).

Fixes incorrect call to endTransaction method (which should be transactionEnd).