don't use GetPrimitiveArrayCritical when throwing SocketExceptions

690ba9c fixed this for throwIOException, but we didn't notice that
throwSocketException had the same problem.