Disable interrupts while opening files from SD card