Split up rarch_main_clear_state into two functions - rarch_main_state_new
and rarch_main_state_free