Necessary conditions for turnpike property for generalized linear?quadratic problems