Possible solution
I had this problem today as well. I spent about 3 hours fiddling and Googling. I noticed an update to the Torch tweak was out on Cydia, so updated, and lo! the problem vanished. This was a very reliable problem to reproduce - press the power button to sleep the screen, and an immediate crash into safe mode would result. After running this wee Torch update, as I said, the problem was gone. I know correlation is not causation, but if your are tearing your hair out, this may help.