boot0cfg: check result of malloc in read_mbr()