SPARK-4660: Use correct default classloader in JavaSerializer.