Free icache, dcache and idmap after use.
Extract icache_insert() function.