If ACTIVITY_INACTIVE is set, wait for GC before resetting it