Remove double declaration of cache list and lock.