[PATCH 5.15 330/530] firmware: google: Test spinlock on panic path to avoid lockups