added ability to configure memcache locking