For anyone saying that it's because you pressed this or that for a certain time... is wrong!
Mine has played up a couple of times now with the phone locking up whenever it goes into sleep/lock mode. And yes I could always soft restart it (vol down + power), but it was being a real pain in the...