libpacman: Vectorise pacman handle lock acquire/release code.