[statement] use sqlite3_free as a callback where possible