Made Process::isForegroundProcess() return a correct result on iOS.