Fix handler_monitor to avoid deadlock caused by simultaneous node down events