(ITS#7976) Bug in syncrepl.c short-circuits overlay stack cleanup