fix non-Avian classpath build regression introduced in 7a768f2

While Avian's java.util.logging.Handler only has one abstract method,
the standard version has three.
Merge pull request #269 from dicej/handler

fix non-Avian classpath build regression introduced in 7a768f2
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