Warping effects on the stability of non-trivial equilibria for thin-walled beams