Ticket 48217 - cleanAllRUV hangs shutdown if not all of the
replicas are online
Bug Description: There are race conditions where we might not notify the
clean task when a shutdown is occuring. This casues the
task refcount to be not decremented, which hangs the
destructor function.
Fix Description: Check that the server is not shutting down before going
to sleep, and notify the clean/abort tasks to stop in
the destructor functions(instead of in the mmr plugin stop
function).
https://fedorahosted.org/389/ticket/48217
Reviewed by: lkrispen(Thanks!)
(cherry picked from commit d6269f2e6898a187d43e3368860b13cdbd39ec55)
(cherry picked from commit 0bb881aea92d64e509cf7604e86559779e4f9b77)