MDL-31501 session: Better compatibility over different Memcached version