[PATCH 4.17 14/31] net: socket: fix potential spectre v1 gadget in socketcall