I'm not sure about your first issue, but I definitely know about your second issue. When you installed A9LH on your friend's 3ds system, it now relies on the SD card. So basically, the SD card is now the "heart" of the 3ds, which is why the 3ds failed to boot, which is also normal.