Modified distributed cache locking mechanism