Correctly determine duplicate alarms when alarm is cleared

Also, don't bother doing anything on duplicate alarms, per
review feedback.