This has been discussed ad nauseum. It has nothing to do with a custom or a stock ROM - it is a problem that lies deep within Windows Mobile itself
The solution that seems to work 95% of the time is to just wait 10 seconds or so and then try to wake the phone again. It should usually kick right back up if you do that