Add cpu_unregister_io_memory and make io mem table index dynamic