fixed bug in releasing mysql savepoint