Fix sqlite3_savepoint so it actually releases on error.