[PATCH 4.17 15/31] net: socket: Fix potential spectre v1 gadget in sock_is_registered