Finalize sqlite3 prepared statement.