Current vGIC code in various places locks the irq mutex, followed by
locking the lr mutex. This makes the code cleaner for cases where we are
modifying an irq we already have a handle for, but complicates things
for cases where we want to iterate through the list and find an IRQ that
we do not already have a handle for. For those, the current locking
order necessitates snapshotting the entire list to avoid deadlocks and
race conditions.
To resolve this, introduce the vgic_v3_get_irq_with_lr helper which
wraps the existing vgic_v3_get_irq in a way that returns with both the
irq mutex held, as well as the lr mutex on the target vCPU.
Use the helper to fix all existing users and thus introduce a strict
locking hierarchy of lr_mtx -> irq_spinmtx.
Signed-off-by: Kajetan Puchalski <kajetan.puchalski@arm.com>