So apparently it is possible to keep the processor going processing stuff while the screen is locked, as indicated here:
Running IPhone apps while in sleep mode
I haven't tried this but if you've tired the workaround and it didn't work then it's possible that Apple patched out the hack. The link that gives the work around is from Sept 09 and we've had at least one OS update since then.