CSync: statedb sanity check changes