[build-in-chroot.sh] "pacman -Sy" must be run when the local repo is locked as well or it might try to download the database while it is being deleted