Necessary stochastic maximum principle for dissipative systems on infinite time horizon