The Lost Mode feature on iOS 6 onwards had locked the gadget and allowed you to create a message that you can send to the phone as its getting tracked to find its location even when the service of location had previously gotten disabled.