[PCMCIA MTD] Fix leak and crash on reboot