[BUGFIX] IP locking: Handle IP stack switch without PHP error