Use irqsave variants of spin lock functions where needed

To avoid enabling interrupts in interrupt handler.