Disable interrupts while updating atomic values