Caristi's fixed point theorem and metric convexity