[Test] Add SAFE_BG_FLAG_CHECK_DELAY=0.5 to avoid test failing at certain environment, due to unexpected order of dispatch_after between mainQueue & backgroundQueue.