Refactor rarch_init_rewind/rarch_deinit_rewind