[FLINK-1042] Changed ClassLoader field to be transient.

Serialization of the `RuntimeStatefulSerializerFactory` fails because the field `ClassLoader loader` is not serializable. The fix makes the field `transient`.