Fixed #17943 - too many open file descriptors while using memcache

https://code.djangoproject.com/ticket/17943