v.21.6Bug Fix

Fixed Infinite Processing of SYSTEM RESTART REPLICA and SYSTEM SYNC REPLICA Queries on Low RAM Servers

Fixed the behavior when query SYSTEM RESTART REPLICA or SYSTEM SYNC REPLICA is being processed infinitely. This was detected on server with extremely little amount of RAM. #24457 (Nikita Mikhaylov).