csync_statedb: fix inverted logic in testing if the sqlite was compiled with threads