[PATCH 5.1 34/55] net: remove duplicate fetch in sock_getsockopt