af_packet: fix data-race in packet_setsockopt / packet_setsockopt