SQLite3: Always close statements.

SQLite3 adapter must make sure to close statements after queries.

Fixes: #13631