Implement encrypted distributed locking