On the convexity of some free boundaries