[PATCH 4.9 62/68] net/sonic: Add mutual exclusion for accessing shared state