Text messages are on internal storage, which becomes unmountable when the device is locked.
Depending on the phone, they should be able to get into recovery mode and connect via adb. However, if it has a locked bootloader, they're SOL, and my schaudenfreude is without limit :)