A uniform estimate for positive solutions of semilinear elliptic equations