don't use GetPrimitiveArrayCritical when throwing SocketExceptions

690ba9c fixed this for throwIOException, but we didn't notice that
throwSocketException had the same problem.
Merge pull request #271 from dicej/socketexception

don't use GetPrimitiveArrayCritical when throwing SocketExceptions