[PATCH 6.10 189/375] bpf, net: Fix a potential race in do_sock_getsockopt()