Added example code for removeLock().