Fixes a ContextClassloader bug

Fixes a bug where Thread.currentThread().getContextClassloader() does not return the user code class loader within object deserialization.

Code has been tested successfully on cluster with FLINK-777.