[apiserver] added mutex to protect eventsToAck;