[Pacman] remove lock file after restart.
On Archlinux the database is locked by creating a lock file, on reboot or otherwise when pacman dies this needs to be removed manually.
Discover could do this, for instance at startup of the phone or after asking the user if they are Ok with doing so.
The file location is /var/lib/pacman/db.lck