Fix thread sync for csbp.