[SPARK-3415] [PySpark] removes SerializingAdapter code

This code removes the SerializingAdapter code that was copied from PiCloud
Do you need to define a separate class to test this?  Maybe a simpler reproduction would be to directly instantiate CloudPickleSerializer and attempt to dump `sys.stderr` directly (or a function that references `sys.stderr` in its closure).