mds/quiesce: prevent an overflow of the wait duration
QuiesceTimeInterval::max() may overflow inside of a call to
std::condition_variable::wait_for and result in a busy-loop,
making the call to timeout immediately
The solution is to cap the wait duration to a value which can
certainly fit in whichever clock std library is using internally.
Fixes: https://tracker.ceph.com/issues/65276
Signed-off-by: Leonid Usov <leonid.usov@ibm.com>
(cherry picked from commit
508e870ee383265b8489e18a4c73854616a4110a)