wip: SQLite 'locked' error on 1.8 upgrader, refs #611

* inc/db_sqlite.php
  * closed query cursor after alter queries