VOL-2508 Modify get all alarms to reflect uni alarm state

onu adapter periodically polls for all alarms and the
previously hardcoded get all alarms response would not
send the already sent autonomous alarm, effectivly
clearing the alarm before it was time

this change sets the autonomous link alarm to up or down
and sets a flag to indicate the onu is locked so alarm polling
gets the same results

this also has the side effect of fixing a class id 0 bug
that was being returned in get all alarms response that should not
have been given the response was valid "in time"

Change-Id: I103ce51a38755f6ae80db034706517744eecea40
diff --git a/omci_sim.go b/omci_sim.go
index c971d54..6195168 100644
--- a/omci_sim.go
+++ b/omci_sim.go
@@ -135,6 +135,12 @@
 				Packet: linkMsgDown,
 			}
 			omciCh <- msg
+
+			OnuOmciStateMapLock.Lock()
+			if OnuOmciState, ok := OnuOmciStateMap[key]; ok {
+				OnuOmciState.state = LOCKED
+			}
+			OnuOmciStateMapLock.Unlock()
 		}
 
 		// attribute bit 5 (admin state) in the PPTP is being set, its value is 0, unlock
@@ -158,6 +164,12 @@
 				Packet: linkMsgUp,
 			}
 			omciCh <- msg
+
+			OnuOmciStateMapLock.Lock()
+			if OnuOmciState, ok := OnuOmciStateMap[key]; ok {
+				OnuOmciState.state = DONE
+			}
+			OnuOmciStateMapLock.Unlock()
 		}
 	}