[Issue 10232] New: assert() at shutdown if a syncrepl session is in refresh