Fix the switch logic so we set WT_LSM_TREE_NEED_SWITCH when there is no primary.