Pacman's cache must be locked before cleaning it