Check malloc return value

Hi, Capstone was segfaulting when malloc failed in cs.c for the insn_cache. With my patch it behaves as expected.