Fix gevent connection leak

Using CELERYD_POOL="gevent" can cause a mongodb connections to leak.

Cleaning up the cached_properties as well as the connection prevents that.