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).

See https://github.com/silverstripe-labs/silverstripe-newsletter/pull/82