Detection of a quasi-periodic oscillation at $\sim$40 mHz in Cen X-3 with Insight-HXMT