Extracts UpdateableSchemaStateHolder, polishes tests, fixes transactional flush handling