[codec-memcache] Release extras and double check before release on decode

Motivation
----------
Extras need to be freed so that they do not hang around longer than needed. Also,
make sure that they are only freed if something is holding onto them.

Modifications
-------------
Free it properly on encode and make sure it can be freed on decode.

Result
------
Not leaking on requests and not running into exceptions on decode.