Add snapshot lock.