[U-Boot] [PATCH 16/28] net: Refactor to protect access to the NetState variable