I've actually seen this happen, and it was a dying motherboard that caused it, granted it had Windows 98 installed, but the symptoms were the same, sometimes it loaded fine, sometimes it locked up where you said, though it also locked up just before, during and after POST also, which made it [kinda] easy to diagnose.