[fix] Handle clear notifications deadlock