Get rid of lifecycle_mode_state and use g_extern.lifecycle_state
instead