Deadlock on close

Bugfix when using sqlite3 with a connectionpool. The connection pool replaces the this.callback of the sqlite3query, which broke some event handling before.