The only permanent and safe way to remove the lock is through Apple Support or by having the original owner remove the device from their iCloud account.
: The activation lock will reappear every time the device is restarted. Compatibility uiicloud dns bypass hot
The device remains "locked" in the background. If you restart or disconnect from the specific Wi-Fi network, you'll be back at the Activation Lock screen. The only permanent and safe way to remove