[PATCH 3.16 203/245] net/sonic: Add mutual exclusion for accessing shared state