[PATCH 4.19 44/92] net/sonic: Add mutual exclusion for accessing shared state