--dbonly still runs hooks

Description:

The --dbonly flag sets ALPM_TRANS_FLAG_NOHOOKS, but hooks are still run

Steps to reproduce:

mkdir newroot
sudo pacstrap -K newroot base
sudo arch-chroot newroot /bin/bash

# inside chroot
mkdir /root/newdb
pacman -Sy --dbpath /root/newdb
pacman -S --dbpath /root/newdb --dbonly base

see :: Running post-transaction hooks... in the output.