this is hot garbage, just walked a friend through recovery last night -- phone is not locked, only in lost mode. in lost mode it will connect to previously accessed wifi networks.
this is lost mode:
https://support.apple.com/kb/PH19299?locale=en_US
steps to recover:
reset apple ID password using ...