set/reset finalizer to free SQLite3 handles