ccgui: Fix #22: sqlite threading error.