Update PyMemcacheCache backend to be thread-safe