v.21.9Performance Improvement

Improve fast query performance by reducing clock_gettime system calls when max_execution_time is 0

Improve the performance of fast queries when max_execution_time = 0 by reducing the number of clock_gettime system calls. #27325 (filimonov).