Almost global solutions of semilinear wave equations with the critical exponent in high dimensions