[SPARK-3045] [SPARK-3046]  Make Serializer interface Java friendly & use executor's class loader as the default serializer class loader