Xmerl avoid code server serialization

Original PR to Erlang/OTP: https://github.com/erlang/otp/pull/87 (already merged to maint)