Not sure if this will lockup the device, but you have System Thread enabled and are trying to go into SLEEP_MODE_DEEP before waiting for Cellular.on() to finish.
See specifically MANUAL, system thread (failure example)
Try disabling System Thread, or, putting a delay(2000) after the Cellular.on().