CAS-1393: Memcached serialization fails when creating a proxy ticket

It's a bug fix for 4.0.